Motion compensation processing method, encoder, decoder and storage medium
By adding search points and steps in the diagonal direction to the search position constellation diagram, a new motion vector is generated, which solves the problems of insufficient motion information accuracy and low coding efficiency in the existing technology, and achieves a more accurate representation of motion information. and higher encoding performance.
Patent Information
- Application Number
- CN202111584028.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-25
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-06-25
AI Technical Summary
Existing motion vector difference fusion technology is difficult to meet the motion conditions of most objects in the skip and fusion modes in inter-frame prediction, resulting in insufficient motion information accuracy, thereby reducing coding efficiency.
By including search points in the diagonal direction in the search position constellation map and adopting preset range coverage rules, the search direction and step size are expanded to generate new motion vectors for motion compensation and prediction values of coding units.
It improves the representation accuracy of motion information, avoids the decrease in coding efficiency caused by unselected search steps, and meets the motion conditions of most objects.
Smart Images

Figure CN114222136B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of video coding and decoding technology, and in particular to a motion compensation processing method, an encoder, a decoder, and a storage medium. Background Art
[0002] The Merge with Motion Vector Difference (MMVD) technology is used in the skip and merge modes in inter-frame prediction and is a special form of expression of motion vectors. The MMVD technology is mainly implemented through the following process: reuse the merge candidate motion vectors in Versatile Video Coding (VVC), select one of these candidates as the initial motion vector, and then expand it through the following method; use some simple syntax elements to represent it, mainly including the starting point, motion amplitude and motion direction, to obtain the final expanded representation of the motion vector and form a new motion vector. However, the above scheme is currently difficult to meet the motion conditions of most objects, resulting in insufficient accuracy of the motion information that can be represented. Summary of the invention
[0003] The embodiments of the present application provide a motion compensation processing method, encoder, decoder and storage medium, which can avoid the problem of reduced coding efficiency caused by a part of the search step not being selected; and ensure that the motion conditions of most objects are met and the motion information is represented more accurately.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a motion compensation processing method, which is applied to a decoder, and the method includes:
[0006] Determine a search position constellation diagram with the point pointed to by the initial motion vector as the center point, wherein the search position constellation diagram includes N directions, at least one step length is used to search at least one search point in the direction, N is an integer greater than or equal to 1, and the at least one search point at least includes a search point in a diagonal direction, and the diagonal directions are: upper left, lower left, upper right, and lower right relative to the center point;
[0007] Based on a preset range coverage rule, searching for at least one search position from the search position constellation diagram, wherein the preset range coverage rule is to arrange the search points in the direction for searching; and
[0008] A new motion vector is obtained according to at least one search position, and motion compensation is performed based on the new motion vector to obtain a prediction value of the coding unit CU.
[0009] In a second aspect, an embodiment of the present application provides a motion compensation processing method, which is applied to an encoder, and the method includes:
[0010] Determine a search position constellation diagram with the point pointed to by the initial motion vector as the center point, wherein the search position constellation diagram includes N directions, at least one step length is used to search at least one search point in the direction, N is an integer greater than or equal to 1, and the at least one search point at least includes a search point in a diagonal direction, and the diagonal directions are: upper left, lower left, upper right, and lower right relative to the center point;
[0011] Based on a preset range coverage rule, searching for at least one search position from the search position constellation diagram, wherein the preset range coverage rule is to arrange the search points in the direction for searching; and
[0012] A new motion vector is obtained according to at least one search position, and motion compensation is performed based on the new motion vector to obtain a prediction value of the coding unit CU.
[0013] In a third aspect, an embodiment of the present application provides a decoder, including:
[0014] The extended part determines a search position constellation diagram with the point pointed to by the initial motion vector as the center point, wherein the search position constellation diagram includes N directions, at least one step length is used to search at least one search point in the direction, N is an integer greater than or equal to 1, and the at least one search point at least includes a search point in a diagonal direction, and the diagonal directions are: upper left, lower left, upper right, and lower right relative to the center point;
[0015] The decoding part searches for at least one search position from the search position constellation diagram based on a preset range coverage rule, obtains a new motion vector based on at least one search position, and performs motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU, wherein the preset range coverage rule is to arrange the search points in the direction for searching.
[0016] In a fourth aspect, an embodiment of the present application provides an encoder, including:
[0017] A construction part, using the point pointed to by the initial motion vector as the center point to determine a search position constellation diagram, wherein the search position constellation diagram includes N directions, at least one step length is used to search at least one search point in the direction, N is an integer greater than or equal to 1, and the at least one search point at least includes a search point in a diagonal direction, and the diagonal directions are: upper left, lower left, upper right, and lower right relative to the center point;
[0018] The encoding part searches for at least one search position from the search position constellation diagram based on a preset range coverage rule, obtains a new motion vector based on at least one search position, and performs motion compensation based on the new motion vector to obtain a prediction value of the encoding unit CU, wherein the preset range coverage rule is to arrange the search points in the direction for searching.
[0019] In a fifth aspect, an embodiment of the present application provides a decoder, comprising a processor and a memory storing instructions executable by the processor, wherein when the instructions are executed by the processor, the method of the first aspect or other aspects is implemented.
[0020] In a sixth aspect, an embodiment of the present application provides an encoder, wherein the decoder includes a processor and a memory storing instructions executable by the processor, and when the instructions are executed by the processor, the methods of the second aspect or other aspects are implemented.
[0021] In the seventh aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a program, and when the program is executed by a processor, it implements the steps of the method described in the first aspect, or when the program is executed by a processor, it implements the steps of the method described in the second aspect.
[0022] The solution provided in this embodiment can be performed based on N search directions including diagonal search directions and multiple search steps when determining the search position. In this way, compared with the prior art, the search steps in each direction are reduced, thereby avoiding the problem of reduced coding efficiency caused by a part of the search steps not being selected; and by increasing the search direction, it is ensured that the motion conditions of most objects are met, thereby more accurately representing the motion information. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of determining a search position for intra prediction;
[0024] Figure 2 The process flow diagram of the motion compensation processing method of the present application embodiment is as follows Figure 1 ;
[0025] Figure 3A schematic diagram of determining a search position in an embodiment of the present application;
[0026] Figure 4 This is a schematic diagram of the search direction when the present application is applied in MMVD;
[0027] Figure 5 A schematic diagram of obtaining multiple search positions in MMVD for this application;
[0028] Figure 6 It is a schematic diagram of the structure of a video coding system;
[0029] Figure 7 It is a structural diagram of a video decoding system;
[0030] Figure 8 A schematic diagram of the structure of the encoder proposed in the embodiment of the present application;
[0031] Fig. 9 The process flow diagram of the motion compensation processing method of the present application embodiment is as follows Figure 2 ;
[0032] Fig.10 A schematic diagram of the structure of a decoder according to an embodiment of the present application;
[0033] Fig.11 This is a schematic diagram of the hardware composition structure proposed in the embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the accompanying drawings.
[0035] In MMVD technology, the candidate list of the current CU motion vector is obtained through the process of constructing the merge candidate list in VVC. Then, for each candidate in the list, the syntax is expanded: each candidate is used as the initial motion vector, and the position pointed to by the candidate in the reference image is used as the starting point. Eight different step lengths are searched in the four directions of up, down, left, and right, such as Figure 1 As shown. Each initial motion vector in each direction will form a new motion vector for each step size, and a motion compensation is performed on the motion vector to obtain the prediction value of the current CU. Then, the rate-distortion cost is compared between all the current prediction values, and the best combination of syntax elements is selected. The position of the initial motion vector in the merge candidate list, the moving direction, and the index of the search step size are recorded.
[0036] Considering the trade-off between algorithm complexity and performance, the algorithm currently uses the first two candidates in the merge candidate list as the initial motion vector. For the indexes of the initial motion vector, 8 search steps and 4 search directions, refer to the following tables 1, 2, and 3:
[0037]
[0038] Table 1
[0039]
[0040] Table 2
[0041]
[0042] Table 3
[0043] When selecting a new motion vector based on the MMVD technology, the 8 search steps are not fully utilized. By counting the probability of the 8 steps being selected in the standard test sequence of VVC, it can be found that for each test sequence, the probability of the first four search steps, i.e., 1 / 4, 1 / 2, 1, and 2, being selected almost accounts for more than 90%, and the remaining 4 steps are not fully utilized, which reduces the coding efficiency. In addition, there are only 4 search directions, i.e., up, down, left, and right, so it is difficult to meet the motion conditions of most objects, resulting in insufficient accuracy of the motion information that can be represented.
[0044] Based on this, this embodiment provides a motion compensation processing method, such as Figure 2 As shown, including:
[0045] Step 11: establishing a search position constellation diagram based on the initial motion vector; wherein the search position constellation diagram includes N search directions, and at least one search point is obtained by searching in the search direction using at least one search step length; N is an integer greater than or equal to 1, and the N search directions include at least a diagonal search direction;
[0046] Step 12: based on a preset range coverage rule, selecting at least one search position from the search position constellation diagram; wherein the preset range coverage rule is to disperse the number of preset search points in the N search directions for selection;
[0047] Step 13: Use at least one search position as a new motion vector, and perform motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU.
[0048] The method provided in this embodiment can be applied to the encoder end in a video encoding and decoding system.
[0049] In general, the above scheme first distributes available search points in multiple search directions according to distance, constructs a search position constellation diagram, and then selects a suitable number of search positions from the constellation diagram according to the range coverage principle.
[0050] That is to say, under the premise that the preset search positions are 32, this embodiment expands the original 4 search directions to 8 directions, reduces the number of search steps to 8 in each direction, and allocates search steps in different search directions to cover a wider search range.
[0051] The step of establishing a search position constellation diagram based on the initial motion vector specifically includes:
[0052] A search position constellation diagram is established with the point pointed to by the initial motion vector as the center point.
[0053] The eight search directions are divided into two types, namely horizontal and vertical search directions, and diagonal search directions.
[0054] The horizontal and vertical search directions are respectively: up, down, left, and right; the diagonal search directions are respectively: upper left, lower left, upper right, and lower right.
[0055] The search step size corresponds to the type of the search direction;
[0056] The method further comprises: when the type of the search direction is a horizontal or vertical search direction, using a first set of search step lengths; when the type of the search direction is a diagonal search direction, using a second set of search step lengths;
[0057] Wherein, under the premise that the preset search positions are 32, the first group of search steps includes at least one first search step; and the second group of search steps includes at least one second search step.
[0058] It should be noted that, in this embodiment, the first group of search step lengths and the second group of search step lengths may be the same or different.
[0059] When the two sets of search step sizes are the same, it can be considered that the same four search step sizes (the step size is the distance between the search position and the position of the constellation center point) are used to select the search position in the horizontal, vertical and diagonal directions.
[0060] Alternatively, the first group of search steps is different from the second group of search steps, in which case the first group of search steps and the second group of search steps can be crossed. For example, the search steps in the horizontal and vertical directions and the search steps in the diagonal directions are increased in an interlaced manner. An example is: the distance in the horizontal and vertical directions is given priority, and then the search steps in the diagonal directions are crossed within two adjacent horizontal and vertical search steps. In this way, the search in the diagonal direction can cover the area that cannot be searched in the horizontal and vertical directions.
[0061] That is to say, between the first type of first search step and the second type of first search step in the first group of search steps, there may be the first type of second search step in the second group of search steps; correspondingly, between the second type of second search step and the third type of second search step in the second group of search steps, there may be the third type of first search step in the first group of search steps.
[0062] The search step for the diagonal position (lx, ly) where lx=ly is represented herein by a single value lx.
[0063] For example, the first search step size is at least one of the following: 1 / 4 pixel, 1 / 2 pixel, 2 pixels, 4 pixels;
[0064] The second search step size is at least one of the following: 1 / 8 pixel, 3 / 8 pixel, 3 / 4 pixel, 3 / 2 pixel.
[0065] The solution provided by this embodiment is described below in conjunction with the accompanying drawings:
[0066] With the search step length increased by multiples as the radius and the direction pointed by the initial motion vector as the center, a circle is drawn, and the search step lengths in the diagonal direction are all designed to be close to the edge of the circle, and then extended to the distance in sequence. The search step length in the diagonal direction can be determined based on the first group of search steps and the second group of search steps. For example, when the first group of search steps and the second group of search steps can be the same, a circle can be drawn based on 4 first search steps or second search steps as the radius to obtain four circles, and there are 4 search points in the diagonal direction and the horizontal and vertical directions. When the first group of search steps and the second group of search steps are different, multiple search points can be obtained in the diagonal direction and the horizontal and vertical search directions based on 4 first search steps and 4 second search steps, respectively.
[0067] Then, representative search points are selected according to the coverage range based on statistics, and approximated to positions that can be represented by powers of 2 based on the principle of convenient interpolation operations, such as Figure 31 / 4, 1 / 2, 2, 4 pixels are selected in the horizontal and vertical directions, and (1 / 8, 1 / 8), (3 / 8, 3 / 8), (3 / 4, 3 / 4), (3 / 2, 3 / 2) pixels are selected in the diagonal direction. When selecting representative search points, considering the different statistical characteristics of sequences with different resolutions, more search points can be allocated near the circle with a radius of 1 / 2 and the ring with a radius of 2.
[0068] The detailed description of implementing MMVD on this basis is as follows.
[0069] First, an initial motion vector is selected from the candidate list;
[0070] Specifically, the first two bits of the VVC merge candidate list are still reused as the initial motion vector. For each initial motion vector, the initial motion vector index, search direction index, and search step index are still used for extended representation.
[0071] In the process of expanding the representation, for the search direction part, such as Figure 4 As shown, the original four directions of up, down, left and right are modified into four directions of up, down, left and right and four directions of upper left, upper right, lower right and lower left, that is, the diagonal direction is added on the basis of the original direction.
[0072] exist Figure 4 In the figure, the newly added direction is represented by a solid line, and the original direction is represented by a dotted line. In this way, on the basis of the original horizontal and vertical directions, an additional movement direction is added, which can increase the flexibility of representing the motion vector.
[0073] The index table of the search direction in this embodiment is Table 4:
[0074]
[0075] Table 4
[0076] Then, the search step size is modified. First, the 8 search step sizes of the original algorithm are reduced to 4 commonly used search step sizes, as shown in Table 5:
[0077] Step Index 0 1 2 3 Pixel distance 1 / 4 1 / 2 2 4
[0078] Table 5
[0079] Based on Table 5, in order to cover a wider search range, Table 6 designs a search step size for the diagonal direction that is different from that for the up, down, left, and right directions:
[0080]
[0081] Table 6
[0082] Finally, for each initial motion vector, the search direction and step size are formed as follows Figure 5 shown.
[0083] Based on the above scheme, this embodiment may also include: taking at least one search position as a new motion vector; performing motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU. Then, comparing the rate-distortion cost between all current prediction values, selecting an optimal combination of syntax elements, and recording the position of the initial motion vector in the merge candidate list, the moving direction, and the index of the search step length.
[0084] By adopting the above solution, the test sequence required by JVET was tested under Random Access conditions, and the average changes of BD-rate on Y, Cb, and Cr components were -0.14%, -0.12%, and 0.10%, respectively. This data shows that this technology improves encoding performance.
[0085] Figure 6 It is a schematic diagram of the structure of the video coding system. Figure 6 As shown, the video encoding system 100 includes a transform and quantization module 101, an intra-frame estimation module 102, an intra-frame prediction module 103, a motion compensation module 104, a motion estimation module 105, an inverse transform and inverse quantization module 106, a filter control analysis module 107, a deblocking filter and a sample adaptive offset (Sample Adaptive Offset, SAO) filter module 108, a header information encoding and context-based adaptive binary arithmetic coding (Context-based Adaptive Binary Arithmatic Coding, CABAC) encoding module 109 and a decoded image cache module 110 and other components; Figure 7 It is a structural diagram of a video decoding system. Figure 7As shown, the video decoding system 200 includes a header information decoding and CABAC decoding module 201, an inverse transform and inverse quantization module 202, an intra-frame prediction module 203, a motion compensation module 204, a deblocking filter and SAO filter module 205, and a decoded image buffer module 206. The video image passes through the transform and quantization module 101, the intra-frame estimation module 102, the intra-frame prediction module 103, the motion compensation module 104, the motion estimation module 105, the inverse transform and inverse quantization module 106 in the video encoding system 100. , filter control analysis module 107, deblocking filter and SAO filter module 108, header information encoding and CABAC encoding module 109 and decoded image cache module 110, etc., then the code stream of the video image is output; the code stream is input into the video decoding system 200, and after being partially processed by the header information decoding and CABAC decoding module 201, the inverse transform and inverse quantization module 202, the intra-frame prediction module 203 and the motion compensation module 204 in the video decoding system 200, the original video image is finally restored.
[0086] Furthermore, the image coding method proposed in the present application can affect the intra-frame prediction part in the hybrid framework of video coding, that is, it is mainly used in the motion compensation module 104 and the motion estimation module 105 in video coding; and the motion compensation module 204 in video decoding, acting on both the encoding end and the decoding end.
[0087] Based on the above scheme, this embodiment can improve the encoding performance while the number of operations remains basically unchanged. In the prior art, two initial motion vectors need to be extended and compared 2*4*8=64 times in total, where 2 represents two initial motion vectors, 4 represents the search direction, and 8 represents the search step. After the modification, the two initial motion vectors are still extended, including 8 search directions and 4 search steps, for a total of 2*8*4=64 comparisons. It can be seen that this technology can improve the overall encoding performance while maintaining the same amount of operations as the original technology.
[0088] Accordingly, the complexity of the decoding end can be kept unchanged based on the above scheme. In the prior art, the initial motion vector is extended by decoding three syntax elements at the decoding end to perform motion compensation and finally obtain a reconstructed block. In this scheme, the initial motion vector is still extended by decoding three syntax elements, so the complexity remains unchanged.
[0089] It can be seen that the solution provided by this embodiment can be executed based on 8 search directions and 4 search steps corresponding to each direction when determining the search position. In this way, compared with the prior art, the search steps in each direction are reduced, thereby avoiding the problem of reduced coding efficiency caused by a part of the search steps not being selected; and by increasing the search direction, it is ensured that the motion conditions of most objects are met, thereby more accurately representing the motion information.
[0090] Based on this, this embodiment provides an encoder, such as Figure 8 As shown, the construction part 32 and the encoding part 33,
[0091] The construction part 32 establishes a search position constellation diagram based on the initial motion vector; wherein the search position constellation diagram includes N search directions, and at least one search point is obtained by searching in the search direction using at least one search step length; N is an integer greater than or equal to 1, and the N search directions at least include a diagonal search direction;
[0092] The encoding part 33 selects at least one search position from the search position constellation diagram based on a preset range coverage rule; uses the at least one search position as a new motion vector, and performs motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU;
[0093] The preset range coverage rule distributes the number of preset search points in the N search directions for selection.
[0094] The method provided in this embodiment can be applied to the encoder end in a video encoding and decoding system.
[0095] That is to say, under the premise that the preset search positions are 32, this embodiment expands the original 4 search directions to 8 directions, reduces the number of search steps to 8 in each direction, and allocates search steps in different search directions to cover a wider search range.
[0096] Specifically, the construction part establishes a search position constellation diagram with the point pointed to by the initial motion vector as the center point.
[0097] The N search directions included in the search position constellation diagram also include horizontal and vertical search directions; the horizontal and vertical search directions are respectively: up, down, left, and right; the diagonal search directions are respectively: upper left, lower left, upper right, and lower right.
[0098] The search step length corresponds to the type of the search direction; the encoding part, when the type of the search direction is a horizontal or vertical search direction, adopts a first group of search step lengths; when the type of the search direction is a diagonal search direction, adopts a second group of search step lengths;
[0099] Wherein, under the premise that the preset search positions are 32, the first group of search steps includes at least one first search step; and the second group of search steps includes at least one second search step.
[0100] It should be noted that, in this embodiment, the first group of search step lengths and the second group of search step lengths may be the same or different.
[0101] When the two sets of search step sizes are the same, it can be considered that the same four search step sizes (the step size is the distance between the search position and the position of the constellation center point) are used to select the search position in the horizontal, vertical and diagonal directions.
[0102] Alternatively, the first group of search steps is different from the second group of search steps, in which case the first group of search steps and the second group of search steps can be crossed. For example, the search steps in the horizontal and vertical directions and the search steps in the diagonal directions are increased in an interlaced manner. An example is: the distance in the horizontal and vertical directions is given priority, and then the search steps in the diagonal directions are crossed within two adjacent horizontal and vertical search steps. In this way, the search in the diagonal direction can cover the area that cannot be searched in the horizontal and vertical directions.
[0103] That is to say, between the first type of first search step and the second type of first search step in the first group of search steps, there may be the first type of second search step in the second group of search steps; correspondingly, between the second type of second search step and the third type of second search step in the second group of search steps, there may be the third type of first search step in the first group of search steps.
[0104] The search step for the diagonal position (lx, ly) where lx=ly is represented herein by a single value lx.
[0105] For example, the first search step size is at least one of the following: 1 / 4 pixel, 1 / 2 pixel, 2 pixels, 4 pixels;
[0106] The second search step size is at least one of the following: 1 / 8 pixel, 3 / 8 pixel, 3 / 4 pixel, 3 / 2 pixel.
[0107] The solution provided by this embodiment is described below in conjunction with the accompanying drawings:
[0108] With the search step length increased by multiples as the radius and the direction pointed by the initial motion vector as the center, a circle is drawn, and the search step lengths in the diagonal direction are all designed to be close to the edge of the circle, and then extended to the distance in sequence. The search step length in the diagonal direction can be determined based on the first group of search steps and the second group of search steps. For example, when the first group of search steps and the second group of search steps can be the same, a circle can be drawn based on 4 first search steps or second search steps as the radius to obtain four circles, and there are 4 search points in the diagonal direction and the horizontal and vertical directions. When the first group of search steps and the second group of search steps are different, multiple search points can be obtained in the diagonal direction and the horizontal and vertical search directions based on 4 first search steps and 4 second search steps, respectively.
[0109] Then, representative search points are selected according to the coverage range based on statistics, and approximated to positions that can be represented by powers of 2 based on the principle of convenient interpolation operations, such as Figure 3 1 / 4, 1 / 2, 2, 4 pixels are selected in the horizontal and vertical directions, and (1 / 8, 1 / 8), (3 / 8, 3 / 8), (3 / 4, 3 / 4), (3 / 2, 3 / 2) pixels are selected in the diagonal direction. When selecting representative search points, considering the different statistical characteristics of sequences with different resolutions, more search points can be allocated near the circle with a radius of 1 / 2 and the ring with a radius of 2.
[0110] The detailed description of implementing MMVD on this basis is as follows.
[0111] First, an initial motion vector is selected from the candidate list;
[0112] Specifically, the first two bits of the VVC merge candidate list are still reused as the initial motion vector. For each initial motion vector, the initial motion vector index, search direction index, and search step index are still used for extended representation.
[0113] In the process of expanding the representation, for the search direction part, such as Figure 4 As shown, the original four directions of up, down, left and right are modified into four directions of up, down, left and right and four directions of upper left, upper right, lower right and lower left, that is, the diagonal direction is added on the basis of the original direction.
[0114] exist Figure 4 In the figure, the newly added direction is represented by a solid line, and the original direction is represented by a dotted line. In this way, on the basis of the original horizontal and vertical directions, an additional movement direction is added, which can increase the flexibility of representing the motion vector.
[0115] The index table of the search direction in this embodiment is Table 4:
[0116]
[0117] Table 4
[0118] Then, the search step size is modified. First, the 8 search step sizes of the original algorithm are reduced to 4 commonly used search step sizes, as shown in Table 5:
[0119] Step Index 0 1 2 3 Pixel distance 1 / 4 1 / 2 2 4
[0120] Table 5
[0121] Based on Table 5, in order to cover a wider search range, Table 6 designs a search step size for the diagonal direction that is different from that for the up, down, left, and right directions:
[0122] Step Index 0 1 2 3 Pixel distance up, down, left, and right 1 / 4 1 / 2 2 4 Diagonal pixel distance 1 / 8 3 / 8 3 / 4 3 / 2
[0123] Table 6
[0124] Finally, for each initial motion vector, the search direction and step size are formed as follows Figure 5 shown.
[0125] Based on the above scheme, the encoding part of this embodiment uses at least one search position as a new motion vector; performs motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU. Then compare the rate-distortion cost between all current prediction values, select the best combination of syntax elements, and record the position of the initial motion vector in the merge candidate list, the moving direction, and the index of the search step length.
[0126] By adopting the above solution, the test sequence required by JVET was tested under Random Access conditions, and the average changes of BD-rate on Y, Cb, and Cr components were -0.14%, -0.12%, and 0.10%, respectively. This data shows that this technology improves encoding performance.
[0127] Based on the above scheme, this embodiment can improve the encoding performance while the number of operations remains basically unchanged. In the prior art, two initial motion vectors need to be extended and compared 2*4*8=64 times in total, where 2 represents two initial motion vectors, 4 represents the search direction, and 8 represents the search step. After the modification, the two initial motion vectors are still extended, including 8 search directions and 4 search steps, for a total of 2*8*4=64 comparisons. It can be seen that this technology can improve the overall encoding performance while maintaining the same amount of operations as the original technology.
[0128] Accordingly, the complexity of the decoding end can be kept unchanged based on the above scheme. In the prior art, the initial motion vector is extended by decoding three syntax elements at the decoding end to perform motion compensation and finally obtain a reconstructed block. In this scheme, the initial motion vector is still extended by decoding three syntax elements, so the complexity remains unchanged.
[0129] It can be seen that the solution provided by this embodiment can be executed based on 8 search directions and 4 search steps corresponding to each direction when determining the search position. In this way, compared with the prior art, the search steps in each direction are reduced, thereby avoiding the problem of reduced coding efficiency caused by a part of the search steps not being selected; and by increasing the search direction, it is ensured that the motion conditions of most objects are met, thereby more accurately representing the motion information.
[0130] This embodiment provides a motion compensation processing method, which is applied to a decoder, such as Fig. 9 As shown, including:
[0131] Step 41: based on the syntax element of the initial motion vector, extending at least one search position corresponding to the initial motion vector in the search position constellation diagram;
[0132] Step 42: performing motion compensation based on the new motion vector obtained by expanding the initial motion vector to obtain a reconstructed block;
[0133] The syntax element includes an initial motion vector index, a search direction index, and a search step index; the search direction indicated in the search direction index includes at least a diagonal search direction.
[0134] Performing motion compensation based on the new motion vector obtained by expanding the initial motion vector to obtain a reconstructed block can be understood as performing motion compensation based on the new motion vector obtained by expanding the initial motion vector to obtain a reconstructed block of the current processing block. The current processing block is the current coding block.
[0135] The method provided in this embodiment can be applied to a decoder end in a video encoding and decoding system.
[0136] In general, the above scheme first distributes available search points in multiple search directions according to distance, constructs a search position constellation diagram, and then selects a suitable number of search positions from the constellation diagram according to the range coverage principle.
[0137] That is to say, under the premise that the preset search positions are 32, this embodiment expands the original 4 search directions to 8 directions, reduces the number of search steps to 8 in each direction, and allocates search steps in different search directions to cover a wider search range.
[0138] Specifically, a search position constellation diagram is established with the point pointed to by the initial motion vector as the center point;
[0139] Among them, the search directions included in the search position constellation diagram also include horizontal and vertical search directions; the horizontal and vertical search directions are: up, down, left, and right; the diagonal search directions are: upper left, lower left, upper right, and lower right.
[0140] The search step size corresponds to the type of the search direction;
[0141] The method further comprises: when the type of the search direction is a horizontal or vertical search direction, using a first set of search step lengths; when the type of the search direction is a diagonal search direction, using a second set of search step lengths;
[0142] Wherein, under the premise that the preset search positions are 32, the first group of search steps includes at least one first search step; and the second group of search steps includes at least one second search step.
[0143] It should be noted that, in this embodiment, the first group of search step lengths and the second group of search step lengths may be the same or different.
[0144] When the two sets of search step sizes are the same, it can be considered that the same four search step sizes (the step size is the distance between the search position and the position of the constellation center point) are used to select the search position in the horizontal, vertical and diagonal directions.
[0145] Alternatively, the first group of search steps is different from the second group of search steps, in which case the first group of search steps and the second group of search steps can be crossed. For example, the search steps in the horizontal and vertical directions and the search steps in the diagonal directions are increased in an interlaced manner. An example is: the distance in the horizontal and vertical directions is given priority, and then the search steps in the diagonal directions are crossed within two adjacent horizontal and vertical search steps. In this way, the search in the diagonal direction can cover the area that cannot be searched in the horizontal and vertical directions.
[0146] That is to say, between the first type of first search step and the second type of first search step in the first group of search steps, there may be the first type of second search step in the second group of search steps; correspondingly, between the second type of second search step and the third type of second search step in the second group of search steps, there may be the third type of first search step in the first group of search steps.
[0147] The search step for the diagonal position (lx, ly) where lx=ly is represented herein by a single value lx.
[0148] The first search step size is at least one of the following: 1 / 4 pixel, 1 / 2 pixel, 2 pixels, 4 pixels;
[0149] The second search step size is at least one of the following: 1 / 8 pixel, 3 / 8 pixel, 3 / 4 pixel, 3 / 2 pixel.
[0150] The detailed description of implementing MMVD on this basis is as follows.
[0151] First, an initial motion vector is selected from the candidate list;
[0152] Specifically, the first two bits of the VVC merge candidate list are still reused as the initial motion vector. For each initial motion vector, the initial motion vector index, search direction, and search step length are still used for extended representation.
[0153] In the process of expanding the representation, for the search direction part, such as Figure 4 As shown, the original four directions of up, down, left and right are modified into four directions of up, down, left and right and four directions of upper left, upper right, lower right and lower left, that is, the diagonal direction is added on the basis of the original direction.
[0154] exist Figure 4 In the figure, the newly added direction is represented by a solid line, and the original direction is represented by a dotted line. In this way, on the basis of the original horizontal and vertical directions, an additional movement direction is added, which can increase the flexibility of representing the motion vector.
[0155] The index table of the search direction in this embodiment is Table 4:
[0156]
[0157] Table 4
[0158] Then the search step size is modified. The 8 search step sizes of the original algorithm are reduced to 4 commonly used search step sizes, as shown in Table 5:
[0159] Step Index 0 1 2 3 Pixel distance 1 / 4 1 / 2 2 4
[0160] Table 5
[0161] Based on Table 5, in order to cover a wider search range, Table 6 designs a search step size for the diagonal direction that is different from that for the up, down, left, and right directions:
[0162]
[0163] Table 6
[0164] Finally, for each initial motion vector, the search direction and step size are formed as follows Figure 5 shown.
[0165] Based on the above solution, this embodiment may further include: performing motion compensation based on a new motion vector obtained by expanding the initial motion vector to obtain a reconstructed block.
[0166] Figure 7 It is a structural diagram of a video decoding system. Figure 7 As shown, the video decoding system 200 includes a header information decoding and CABAC decoding module 201, an inverse transform and inverse quantization module 202, an intra-frame prediction module 203, a motion compensation module 204, a deblocking filter and SAO filter module 205, and a decoded image buffer module 206. The video image passes through the transform and quantization module 101, the intra-frame estimation module 102, the intra-frame prediction module 103, the motion compensation module 104, the motion estimation module 105, the inverse transform and inverse quantization module 106 in the video encoding system 100. , filter control analysis module 107, deblocking filter and SAO filter module 108, header information encoding and CABAC encoding module 109 and decoded image cache module 110, etc., then the code stream of the video image is output; the code stream is input into the video decoding system 200, and after being partially processed by the header information decoding and CABAC decoding module 201, the inverse transform and inverse quantization module 202, the intra-frame prediction module 203 and the motion compensation module 204 in the video decoding system 200, the original video image is finally restored.
[0167] Furthermore, the image coding method proposed in the present application can affect the intra-frame prediction part in the hybrid framework of video coding, that is, it is mainly used in the motion compensation module 104 and the motion estimation module 105 in video coding; and the motion compensation module 204 in video decoding, acting on both the encoding end and the decoding end.
[0168] Based on the above scheme, the complexity of the decoding end can be kept unchanged. In the prior art, the initial motion vector is extended by decoding three syntax elements at the decoding end to perform motion compensation and finally obtain a reconstructed block. In this scheme, the initial motion vector is still extended by decoding three syntax elements, so the complexity remains unchanged.
[0169] It should be noted that, for the coding block in the original image frame, on the decoder side, the coding mode adopted by the coding block is first determined; then, based on the determined coding mode, a candidate list corresponding to the coding mode is established; then, according to the candidate list corresponding to the coding mode, the decoding parameters corresponding to the coding block are obtained; finally, based on the decoding parameters corresponding to the coding block, the coding block is predicted and decoded.
[0170] It should also be noted that after predictive coding the coding block, the encoder will send the bitstream corresponding to the coding block to the decoder. In this way, at the decoder side, the decoding parameters can be determined based on the coding parameters in the bitstream and the candidate list.
[0171] It can be seen that the solution provided by this embodiment can be executed based on N search directions including diagonal search directions and multiple search step lengths when determining the search position. In this way, compared with the prior art, the search step lengths in each direction are reduced, thereby avoiding the problem of reduced coding efficiency caused by a part of the search step lengths not being selected; and by increasing the search direction, it is ensured that the motion conditions of most objects are met, thereby more accurately representing the motion information.
[0172] This embodiment provides a decoder such as Fig.10 As shown, including:
[0173] An extension part 51 is used to extend at least one search position corresponding to the initial motion vector in the search position constellation diagram based on a syntax element of the initial motion vector; wherein the syntax element includes an initial motion vector index, a search direction index, and a search step index; and the search direction indicated in the search direction index includes at least a diagonal search direction;
[0174] The decoding part 52 performs motion compensation based on the new motion vector obtained by expanding the initial motion vector to obtain a reconstructed block.
[0175] The method provided in this embodiment can be applied to a decoder end in a video encoding and decoding system.
[0176] In general, the above scheme first distributes available search points in multiple search directions according to distance, constructs a search position constellation diagram, and then selects a suitable number of search positions from the constellation diagram according to the range coverage principle.
[0177] That is to say, under the premise that the preset search positions are 32, this embodiment expands the original 4 search directions to 8 directions, reduces the number of search steps to 8 in each direction, and allocates search steps in different search directions to cover a wider search range.
[0178] Specifically,
[0179] An extension part, used to establish a search position constellation diagram with the point pointed to by the initial motion vector as the center point;
[0180] Among them, the search directions included in the search position constellation diagram also include horizontal and vertical search directions; the horizontal and vertical search directions are: up, down, left, and right; the diagonal search directions are: upper left, lower left, upper right, and lower right.
[0181] The search step size corresponds to the type of the search direction;
[0182] The extension part 51 is used to use a first set of search steps when the search direction is a horizontal or vertical search direction; and to use a second set of search steps when the search direction is a diagonal search direction;
[0183] Wherein, under the premise that the preset search positions are 32, the first group of search steps includes at least one first search step; and the second group of search steps includes at least one second search step.
[0184] It should be noted that, in this embodiment, the first group of search step lengths and the second group of search step lengths may be the same or different.
[0185] When the two sets of search step sizes are the same, it can be considered that the same four search step sizes (the step size is the distance between the search position and the position of the constellation center point) are used to select the search position in the horizontal, vertical and diagonal directions.
[0186] Alternatively, the first group of search steps is different from the second group of search steps, in which case the first group of search steps and the second group of search steps can be crossed. For example, the search steps in the horizontal and vertical directions and the search steps in the diagonal directions are increased in an interlaced manner. An example is: the distance in the horizontal and vertical directions is given priority, and then the search steps in the diagonal directions are crossed within two adjacent horizontal and vertical search steps. In this way, the search in the diagonal direction can cover the area that cannot be searched in the horizontal and vertical directions.
[0187] That is to say, between the first type of first search step and the second type of first search step in the first group of search steps, there may be the first type of second search step in the second group of search steps; correspondingly, between the second type of second search step and the third type of second search step in the second group of search steps, there may be the third type of first search step in the first group of search steps.
[0188] The search step for the diagonal position (lx, ly) where lx=ly is represented herein by a single value lx.
[0189] The first search step size is at least one of the following: 1 / 4 pixel, 1 / 2 pixel, 2 pixels, 4 pixels;
[0190] The second search step size is at least one of the following: 1 / 8 pixel, 3 / 8 pixel, 3 / 4 pixel, 3 / 2 pixel.
[0191] Figure 7 It is a structural diagram of a video decoding system. Figure 7 As shown, the video decoding system 200 includes a header information decoding and CABAC decoding module 201, an inverse transform and inverse quantization module 202, an intra-frame prediction module 203, a motion compensation module 204, a deblocking filter and SAO filter module 205, and a decoded image buffer module 206. The video image passes through the transform and quantization module 101, the intra-frame estimation module 102, the intra-frame prediction module 103, the motion compensation module 104, the motion estimation module 105, the inverse transform and inverse quantization module 106 in the video encoding system 100. , filter control analysis module 107, deblocking filter and SAO filter module 108, header information encoding and CABAC encoding module 109 and decoded image cache module 110, etc., then the code stream of the video image is output; the code stream is input into the video decoding system 200, and after being partially processed by the header information decoding and CABAC decoding module 201, the inverse transform and inverse quantization module 202, the intra-frame prediction module 203 and the motion compensation module 204 in the video decoding system 200, the original video image is finally restored.
[0192] Furthermore, the image coding method proposed in the present application can affect the intra-frame prediction part in the hybrid framework of video coding, that is, it is mainly used in the motion compensation module 104 and the motion estimation module 105 in video coding; and the motion compensation module 204 in video decoding, acting on both the encoding end and the decoding end.
[0193] Based on the above scheme, the complexity of the decoding end can be kept unchanged. In the prior art, the initial motion vector is extended by decoding three syntax elements at the decoding end to perform motion compensation and finally obtain a reconstructed block. In this scheme, the initial motion vector is still extended by decoding three syntax elements, so the complexity remains unchanged.
[0194] It should be noted that, for the coding block in the original image frame, on the decoder side, the coding mode adopted by the coding block is first determined; then, based on the determined coding mode, a candidate list corresponding to the coding mode is established; then, according to the candidate list corresponding to the coding mode, the decoding parameters corresponding to the coding block are obtained; finally, based on the decoding parameters corresponding to the coding block, the coding block is predicted and decoded.
[0195] It should also be noted that after predictive coding the coding block, the encoder will send the bitstream corresponding to the coding block to the decoder. In this way, at the decoder side, the decoding parameters can be determined based on the coding parameters in the bitstream and the candidate list.
[0196] It can be seen that the solution provided by this embodiment can be executed based on N search directions including diagonal search directions and multiple search step lengths when determining the search position. In this way, compared with the prior art, the search step lengths in each direction are reduced, thereby avoiding the problem of reduced coding efficiency caused by a part of the search step lengths not being selected; and by increasing the search direction, it is ensured that the motion conditions of most objects are met, thereby more accurately representing the motion information.
[0197] Fig.11 This is a schematic diagram of the hardware structure of the embodiment of the present application. The hardware in the figure can be the aforementioned encoder or decoder, such as Fig.11 As shown, the encoder 300 proposed in the embodiment of the present application may also include a processor 304, a memory 305 storing executable instructions of the processor 304, a communication interface 306, and a bus 307 for connecting the processor 304, the memory 305 and the communication interface 306.
[0198] Furthermore, in an embodiment of the present application, the processor 304 is configured to execute the processing in the encoder or decoder.
[0199] In an embodiment of the present application, the processor 304 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor function may also be other, and the embodiment of the present application is not specifically limited. The memory 305 may be connected to the processor 304, wherein the memory 305 is used to store executable program code, the program code includes computer operation instructions, and the memory 305 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.
[0200] In the embodiment of the present application, the bus 307 is used to connect the communication interface 306, the processor 304 and the memory 305 and the mutual communication between these devices.
[0201] In the embodiment of the present application, the memory 305 is used to store instructions and data.
[0202] In practical applications, the memory 305 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor.
[0203] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.
[0204] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0205] An embodiment of the present application provides an image encoder for performing the processing in the aforementioned encoder.
[0206] The embodiment of the present application also provides a decoder for executing the processing of the aforementioned decoder.
[0207] The embodiments of the present application provide a computer-readable storage medium and a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the method described in the above embodiments is implemented.
[0208] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0209] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0210] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0211] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0212] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
[0213] Industrial Applicability
[0214] The embodiment of the present application provides a processing method, an encoder and a storage medium for motion compensation, wherein the encoder establishes a search position constellation diagram based on an initial motion vector; wherein the search position constellation diagram includes N search directions, and at least one search point is obtained by searching in the search direction using at least one search step length; N is an integer greater than or equal to 1, and the N search directions include at least a diagonal search direction; based on a preset range coverage rule, at least one search position is selected from the search position constellation diagram; wherein the preset range coverage rule is to disperse the preset number of search points in the N search directions for selection; at least one search position is used as a new motion vector, and motion compensation is performed based on the new motion vector to obtain a predicted value of a coding unit CU. In this way, compared with the prior art, the search step lengths in each direction are reduced, thereby avoiding the problem of reduced coding efficiency caused by a part of the search step lengths not being selected; and by increasing the search direction, it is ensured that the motion conditions of most objects are met, thereby representing the motion information more accurately.
Claims
1. A motion compensation processing method, applied to a decoder, the method comprising: Determine a search position constellation diagram with the point pointed to by the initial motion vector as the center point, wherein the search position constellation diagram includes N directions, at least one step length is used to search at least one search point in the direction, N is an integer greater than or equal to 1, and the at least one search point at least includes a search point in a diagonal direction, and the diagonal directions are: upper left, lower left, upper right, and lower right relative to the center point; Based on a preset range coverage rule, searching for at least one search position from the search position constellation diagram, wherein the preset range coverage rule is to arrange the search points in the direction for searching; and Obtaining a new motion vector according to at least one search position, and performing motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU; Wherein, the at least one search point also includes search points in horizontal and vertical directions; the horizontal and vertical directions are: up, down, left, and right; The method further comprises: When the type of the direction is horizontal or vertical, a first set of search steps is used; When the type of the direction is a diagonal direction, a second set of search steps is used; Among them, the first group of search steps includes at least one first search step; the second group of search steps includes at least one second search step; the first group of search steps is different from the second group of search steps, and the first group of search steps intersects with the second group of search steps.
2. The method according to claim 1, characterized in that The first search step includes at least one of the following: 1 / 4 pixel, 1 / 2 pixel, 2 pixels, 4 pixels; the second search step includes at least one of the following: 1 / 8 pixel, 3 / 8 pixel, 3 / 4 pixel, 3 / 2 pixel.
3. A motion compensation processing method, applied to an encoder, the method comprising: Determine a search position constellation diagram with the point pointed to by the initial motion vector as the center point, wherein the search position constellation diagram includes N directions, at least one step length is used to search at least one search point in the direction, N is an integer greater than or equal to 1, and the at least one search point at least includes a search point in a diagonal direction, and the diagonal directions are: upper left, lower left, upper right, and lower right relative to the center point; Based on a preset range coverage rule, searching for at least one search position from the search position constellation diagram, wherein the preset range coverage rule is to arrange the search points in the direction for searching; and Obtaining a new motion vector according to at least one search position, and performing motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU; Wherein, the at least one search point also includes search points in horizontal and vertical directions; the horizontal and vertical directions are: up, down, left, and right; The method further comprises: When the type of the direction is horizontal or vertical, a first set of search steps is used; When the type of the direction is a diagonal direction, a second set of search steps is used; Among them, the first group of search steps includes at least one first search step; the second group of search steps includes at least one second search step; the first group of search steps is different from the second group of search steps, and the first group of search steps intersects with the second group of search steps.
4. The method according to claim 3, characterized in that The first search step includes at least one of the following: 1 / 4 pixel, 1 / 2 pixel, 2 pixels, 4 pixels; the second search step includes at least one of the following: 1 / 8 pixel, 3 / 8 pixel, 3 / 4 pixel, 3 / 2 pixel.
5. A decoder comprising: The extended part determines a search position constellation diagram with the point pointed to by the initial motion vector as the center point, wherein the search position constellation diagram includes N directions, at least one step length is used to search at least one search point in the direction, N is an integer greater than or equal to 1, and the at least one search point at least includes a search point in a diagonal direction, and the diagonal directions are: upper left, lower left, upper right, and lower right relative to the center point; A decoding part, based on a preset range coverage rule, searches for at least one search position from the search position constellation diagram, obtains a new motion vector according to the at least one search position, and performs motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU, wherein the preset range coverage rule is to arrange the search points in the direction for searching; Wherein, the at least one search point also includes search points in horizontal and vertical directions; the horizontal and vertical directions are: up, down, left, and right; The decoding part, when the type of the direction is a horizontal or vertical direction, adopts a first set of search step lengths; when the type of the direction is a diagonal direction, adopts a second set of search step lengths; Among them, the first group of search steps includes at least one first search step; the second group of search steps includes at least one second search step; the first group of search steps is different from the second group of search steps, and the first group of search steps intersects with the second group of search steps.
6. The decoder according to claim 5, characterized in that The first search step includes at least one of the following: 1 / 4 pixel, 1 / 2 pixel, 2 pixels, 4 pixels; the second search step includes at least one of the following: 1 / 8 pixel, 3 / 8 pixel, 3 / 4 pixel, 3 / 2 pixel.
7. An encoder comprising: A construction part, using the point pointed to by the initial motion vector as the center point to determine a search position constellation diagram, wherein the search position constellation diagram includes N directions, at least one step length is used to search at least one search point in the direction, N is an integer greater than or equal to 1, and the at least one search point at least includes a search point in a diagonal direction, and the diagonal directions are: upper left, lower left, upper right, and lower right relative to the center point; The encoding part searches for at least one search position from the search position constellation diagram based on a preset range coverage rule, obtains a new motion vector according to the at least one search position, and performs motion compensation based on the new motion vector to obtain a prediction value of the coding unit CU, wherein the preset range coverage rule is to arrange the search points in the direction for searching; Wherein, the at least one search point also includes search points in horizontal and vertical directions; the horizontal and vertical directions are: up, down, left, and right; The encoding part, when the type of the direction is a horizontal or vertical direction, adopts a first set of search steps; when the type of the direction is a diagonal direction, adopts a second set of search steps; Among them, the first group of search steps includes at least one first search step; the second group of search steps includes at least one second search step; the first group of search steps is different from the second group of search steps, and the first group of search steps intersects with the second group of search steps.
8. The encoder according to claim 7, characterized in that The first search step includes at least one of the following: 1 / 4 pixel, 1 / 2 pixel, 2 pixels, 4 pixels; the second search step includes at least one of the following: 1 / 8 pixel, 3 / 8 pixel, 3 / 4 pixel, 3 / 2 pixel.
9. A decoder, comprising a processor and a memory storing instructions executable by the processor, wherein when the instructions are executed by the processor, the method according to any one of claims 1 to 2 is implemented.
10. An encoder, comprising a processor and a memory storing instructions executable by the processor, wherein when the instructions are executed by the processor, the method according to any one of claims 3 to 4 is implemented.
11. A computer-readable storage medium having a program stored thereon, applied to a decoder, wherein when the program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
12. A computer-readable storage medium having a program stored thereon, applied to an encoder, wherein when the program is executed by a processor, the method according to any one of claims 3 to 4 is implemented.
Citation Information
Patent Citations
Motion estimation method and device in video encoding, electronic equipment and storage medium
CN109660799A
Video encoding method, video encoder and video encoding program
JP2018107762A
Memory access window for sub prediction block motion vector derivation
WO2019072371A1
