A method, device and equipment for determining motion information
By creating a motion information prediction mode candidate list and selecting a target motion information prediction mode, motion information is directly provided for the designated area of the image block, which solves the problem of bit overhead and inaccurate motion information caused by block division in the existing technology, and improves coding efficiency. performance and bit overhead savings.
Patent Information
- Application Number
- CN202210923870.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2038-11-30
AI Technical Summary
The existing technology requires block division of the current coding unit during inter-frame coding, resulting in additional bit overhead and inability to effectively utilize motion information within the current coding unit, resulting in low accuracy of motion information and reduced coding performance.
By creating a motion information prediction mode candidate list, select and determine the target motion information prediction mode of the current image block, avoid dividing the image block, directly provide motion information for each designated area, and use the surrounding encoded motion information for weighted calculation or filling , improve the accuracy of motion information.
Without increasing the overhead of sub-block division, multiple motion information is provided for each area of the current image block, improving the prediction accuracy of motion information, saving bit overhead, improving coding performance, and solving the problem of transmitting a large number of motion vectors.
Smart Images

Figure CN115348443B
Abstract
Description
Technical Field
[0001] The present application relates to the field of coding and decoding technology, and in particular to a motion information determination method and device thereof. Background Art
[0002] In order to save space, video images are transmitted after being encoded. The complete video encoding method may include prediction, transformation, quantization, entropy coding, filtering and other processes. Among them, predictive coding includes intra-frame coding and inter-frame coding. Inter-frame coding uses the correlation of the video time domain to predict the pixels of the current image using the pixels of the adjacent encoded images to effectively remove the redundancy of the video time domain.
[0003] In inter-frame coding, a motion vector (MV) can be used to represent the relative displacement between the current image block of the current frame video image and the reference image block of the reference frame video image. For example, there is a strong temporal correlation between the video image A of the current frame and the video image B of the reference frame. When the image block A1 (current image block) of the video image A needs to be transmitted, a motion search can be performed in the video image B to find the image block B1 (i.e., the reference image block) that best matches the image block A1, and determine the relative displacement between the image blocks A1 and B1, which is the motion vector of the image block A1.
[0004] In the prior art, there is no need to divide the current coding unit into blocks, and only one motion information can be determined for the current coding unit by indicating the motion information index or the difference information index.
[0005] All sub-blocks in the current coding unit share the same motion information. Therefore, for some small moving targets, the coding unit needs to be divided into blocks to obtain the best motion information. If the current coding unit is divided into multiple sub-blocks, additional bit overhead will be generated. Summary of the invention
[0006] The present application provides a method and device for determining motion information, which can save a large number of bits.
[0007] The present application provides a motion information determination method, which is applied to a decoding end, comprising:
[0008] Creating a motion information prediction mode candidate list for the current image block; wherein the motion information prediction mode candidate list includes at least one motion information prediction mode;
[0009] Selecting a motion information prediction mode from the motion information prediction mode candidate list, and determining the selected motion information prediction mode as a target motion information prediction mode of the current image block;
[0010] The target motion information of the current image block is determined according to the target motion information prediction mode.
[0011] The present application provides a motion information determination method, which is applied to an encoding end, including:
[0012] Creating a motion information prediction mode candidate list for the current image block; wherein the motion information prediction mode candidate list includes at least one motion information prediction mode;
[0013] A motion information prediction mode is selected from the motion information prediction mode candidate list, and the selected motion information prediction mode is determined as a target motion information prediction mode of the current image block.
[0014] The present application provides a decoding method, applied to a decoding end, comprising:
[0015] Creating a motion information prediction mode candidate list for the current image block; wherein the motion information prediction mode candidate list includes at least one motion information prediction mode;
[0016] Selecting a motion information prediction mode from the motion information prediction mode candidate list, and determining the selected motion information prediction mode as a target motion information prediction mode of the current image block;
[0017] Determining the target motion information of the current image block according to the target motion information prediction mode;
[0018] The received encoded bit stream is decoded according to the target motion information.
[0019] The present application provides an encoding method, which is applied to an encoding end, including:
[0020] Creating a motion information prediction mode candidate list for the current image block; wherein the motion information prediction mode candidate list includes at least one motion information prediction mode;
[0021] Selecting a motion information prediction mode from the motion information prediction mode candidate list, and determining the selected motion information prediction mode as a target motion information prediction mode of the current image block;
[0022] The bit stream is encoded according to the target motion information prediction mode to obtain an encoded bit stream.
[0023] The present application provides a decoding end device, including: a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the above-mentioned motion information determination method steps.
[0024] The present application provides an encoding end device, including: a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the above-mentioned prediction mode determination method steps.
[0025] It can be seen from the above technical solution that in the embodiment of the present application, the target motion information prediction mode of the current image block can be determined, and the target motion information of the current image block can be determined according to the target motion information prediction mode. There is no need to divide the current image block, which effectively solves the bit overhead caused by sub-block division. On the basis of not dividing the current image block into sub-blocks, motion information is provided for each designated area of the current image block, and different designated areas of the current image block can correspond to the same or different motion information, thereby improving the coding performance, solving the problem of transmitting a large number of motion vectors, and saving a large number of bits. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments of the present application or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present application.
[0027] Figure 1 is a schematic diagram of a video coding framework in one implementation of the present application;
[0028] Figure 2A and Figure 2B is a schematic diagram of a division method in one implementation of the present application;
[0029] Figure 3A and Figure 3B This is a processing diagram of the Merge mode and the AMVP mode;
[0030] Figure 4 This is a schematic diagram of an application scenario in one embodiment of the present application;
[0031] Figure 5 is a flow chart of a method for determining motion information in one embodiment of the present application;
[0032] Figure 6 is a flow chart of a prediction mode determination method in one embodiment of the present application;
[0033] Figure 7 is a flow chart of a method for determining motion information in one embodiment of the present application;
[0034] Figure 8A-8Dis a schematic diagram of a matching block in one embodiment of the present application;
[0035] Figure 9A-9G is a schematic diagram of a matching block in one embodiment of the present application;
[0036] Fig.10 and Fig.11 It is a schematic diagram of the processing flow of the encoding end and the decoding end;
[0037] Fig.12 is a structural diagram of a motion information determination device in one embodiment of the present application;
[0038] Fig.13 is a structural diagram of a prediction mode determination device in one embodiment of the present application;
[0039] Fig.14 is a hardware structure diagram of a decoding end device in one embodiment of the present application;
[0040] Fig.15 It is a hardware structure diagram of an encoding end device in one implementation of the present application. DETAILED DESCRIPTION
[0041] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, rather than limiting the present application. The singular forms of "a", "said" and "the" used in the present application and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.
[0042] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at..." or "when..." or "in response to determination".
[0043] The present application embodiment proposes a method for determining motion information and a prediction mode, involving the following concepts:
[0044] Motion Vector (MV): In inter-frame coding, a motion vector is used to represent the relative displacement between the current image block of the current frame video image and the reference image block of the reference frame video image. For example, there is a strong temporal correlation between the video image A of the current frame and the video image B of the reference frame. When transmitting the image block A1 (current image block) of the video image A, a motion search can be performed in the video image B to find the image block B1 (reference image block) that best matches the image block A1, and determine the relative displacement between the image block A1 and the image block B1, which is the motion vector of the image block A1. Each divided image block has a corresponding motion vector transmitted to the decoding end. If the motion vector of each image block is independently encoded and transmitted, especially when it is divided into a large number of small-sized image blocks, a considerable number of bits are consumed. In order to reduce the number of bits used to encode the motion vector, the spatial correlation between adjacent image blocks can be used to predict the motion vector of the current image block to be encoded based on the motion vector of the adjacent encoded image blocks, and then the prediction difference is encoded, which can effectively reduce the number of bits representing the motion vector.
[0045] Furthermore, in the process of encoding the motion vector of the current image block, the motion vector of the current macroblock can be first predicted using the motion vector of the adjacent encoded image block, and then the difference (MVD, Motion Vector Difference) between the predicted value of the motion vector (MVP, Motion Vector Prediction) and the true estimate of the motion vector is encoded, thereby effectively reducing the number of encoding bits of the motion vector.
[0046] Motion Information: Since the motion vector represents the position offset between the current image block and a reference image block, in order to accurately obtain the information pointing to the image block, in addition to the motion vector, the index information of the reference frame image is also required to indicate which reference frame image to use. In video coding technology, for the current frame image, a reference frame image list can usually be established, and the reference frame image index information indicates which reference frame image in the reference frame image list is used by the current image block. In addition, many coding technologies also support multiple reference image lists, so an index value can also be used to indicate which reference image list is used. This index value can be called a reference direction. In video coding technology, motion-related information such as motion vectors, reference frame indexes, and reference directions can be collectively referred to as motion information.
[0047] Rate-Distortion Optimized: There are two major indicators for evaluating coding efficiency: bit rate and PSNR (Peak Signal to Noise Ratio). The smaller the bit stream, the greater the compression rate, and the greater the PSNR, the better the quality of the reconstructed image. When selecting a mode, the discriminant formula is essentially a comprehensive evaluation of the two. For example, the cost corresponding to the mode: J(mode) = D + λ*R, where D represents Distortion, which can usually be measured using the SSE indicator. SSE refers to the mean square sum of the differences between the reconstructed image block and the source image; λ is the Lagrange multiplier, and R is the actual number of bits required for encoding the image block in this mode, including the sum of bits required for encoding mode information, motion information, residuals, etc.
[0048] Intra prediction and inter prediction technology: Intra prediction refers to the use of reconstructed pixel values of spatially adjacent image blocks of the current image block (i.e., in the same frame image as the current image block) for predictive coding, while inter prediction refers to the use of reconstructed pixel values of temporally adjacent image blocks of the current image block (in different frame images as the current image block) for predictive coding.
[0049] CTU (Coding Tree Unit) is the maximum coding unit supported by the encoder and the maximum decoding unit supported by the decoder. Furthermore, a frame of image can be divided into several non-overlapping CTUs, and each CTU can be further divided into smaller blocks based on actual conditions.
[0050] Before introducing the technical solution of the embodiment of the present application, the following basic knowledge is briefly introduced:
[0051] See also Figure 1 FIG. 1 is a schematic diagram of a video encoding framework, and the video encoding framework can be used to implement the encoding end processing flow of the embodiment of the present application. In addition, the schematic diagram of the video decoding framework is similar to Figure 1 Similarly, without further elaboration here, a video decoding framework can be used to implement the decoding end processing flow of the embodiment of the present application.
[0052] Specifically, in the video encoding framework and the video decoding framework, modules such as intra-frame prediction, motion estimation / motion compensation, reference image buffer, in-loop filtering, reconstruction, transformation, quantization, inverse transformation, back-quantization, and entropy encoder may be included. On the encoding side, the encoding side processing flow may be realized through the cooperation between these modules, and on the decoding side, the decoding side processing flow may be realized through the cooperation between these modules.
[0053] In the image block division technology, a CTU (Coding Tree Unit) can be recursively divided into CU (Coding Unit) using a quadtree, and the CU can be further divided into two or four PUs (Prediction Units). After the prediction is completed and the residual information is obtained, the CU can be further quad-divided into multiple TUs (Transform Units).
[0054] In VVC (Versatile Video Coding), the division of image blocks has undergone major changes, mixing the binary tree / ternary tree / quadtree division structure, that is, the concepts of CU, PU, and TU are cancelled, and a more flexible division method of CU is supported. CU can be divided into square or rectangular divisions, CTU is first divided into quadtrees, and then the leaf nodes of the quadtree division are divided into binary trees and ternary trees.
[0055] See also Figure 2A As shown, CU can have five types of partitioning, namely quadtree partitioning, horizontal binary tree partitioning, vertical binary tree partitioning, horizontal ternary tree partitioning and vertical ternary tree partitioning. In addition, see Figure 2B As shown, the partitioning of CUs within a CTU may be any combination of the above five partitioning types.
[0056] A brief introduction to the Merge mode: In the inter-frame prediction module, due to the strong temporal correlation of the video, that is, there are many similar image blocks between two adjacent frames in the temporal domain, the image block of the current frame often performs motion search in the adjacent reference image to find the block that best matches the current image block as the reference image block. Since the reference image block is highly similar to the current image block and the difference between the two is very small, the bitrate overhead of encoding the difference is usually much smaller than the bitrate overhead caused by directly encoding the pixel value of the current image block.
[0057] In order to indicate the position of the reference image block that best matches the current image block, a lot of motion information needs to be encoded and transmitted to the decoder so that the decoder can know the position of the reference image block. However, motion information, especially motion vectors, consume a lot of bit rate for encoding and transmission. In order to save this part of bit rate overhead, a coding mode that saves more motion information is currently designed, namely Merge mode.
[0058] In Merge mode, the motion information of the current image block completely reuses the motion information of a neighboring block in the temporal or spatial domain, that is, one motion information is selected from the motion information set of multiple surrounding image blocks as the motion information of the current image block. Therefore, in Merge mode, only one index value needs to be encoded to indicate which motion information in the motion information set is used by the current image block, thereby saving encoding overhead.
[0059] A brief introduction to the AMVP (Advanced Motion Vector Prediction) mode: The AMVP mode is similar to the Merge mode, both of which use the idea of motion information prediction in the spatial and temporal domains. By establishing a candidate motion information list, the best candidate is selected as the motion information of the current image block through the rate-distortion cost. The main difference between the AMVP mode and the Merge mode is that in the Merge mode, the MV of the current unit is directly predicted by the adjacent prediction units in the spatial or temporal domain, and there is no motion vector difference (Motion Vector Difference, MVD), while AMVP can be regarded as an MV prediction technology. The encoder only needs to encode the difference between the actual MV and the predicted MV, so there is MVD. The candidate MV queue lengths of the two are different, and the way to construct the MV list is also different.
[0060] Although the Merge mode can greatly save the encoding overhead of motion information, and the AMVP mode can improve the prediction accuracy of motion information, if the current coding unit is not divided, the current coding unit has only one motion information, and the prediction accuracy is not very high. For example, see Figure 3A As shown, region C, region G, and region H are regions within the current coding unit, not divided sub-image blocks. Assuming that the current coding unit uses the motion information of image block F, then each region within the current coding unit uses the motion information of image block F. Obviously, since region H within the current coding unit is far away from image block F, if region H also uses the motion information of image block F, the prediction accuracy of the motion information is not very high.
[0061] If adopted Figure 2A or Figure 2B The current coding unit is divided into multiple sub-image blocks. For example, see Figure 3B As shown, sub-image block C, sub-image block G, sub-image block H and sub-image block I are sub-image blocks divided in the current coding unit. Obviously, since the current coding unit is divided, additional bits are needed to transmit the division mode, resulting in certain bit overhead.
[0062] Based on the working principle of Merge mode and AMVP mode, the motion information of some sub-image blocks in the current coding unit cannot use the coded motion information around the current coding unit, resulting in a reduction in the available motion information and low accuracy of the motion information. For example, for sub-image block I in the current coding unit, only the motion information of sub-image block C, sub-image block G, and sub-image block H can be used, while the motion information of image block A, image block B, image block F, image block D, and image block E cannot be used.
[0063] In view of the above findings, a method for determining motion information and a prediction mode is proposed in an embodiment of the present application. On the basis of not dividing the current image block, that is, without increasing the overhead caused by sub-block division, the current image block can be made to correspond to multiple motion information, thereby improving the prediction accuracy of the motion information of the current image block. Since the current image block is not divided, it is possible to avoid consuming extra bits to transmit the division method, saving this part of the bit overhead. For each area of the current image block (note that this is any area within the current image block, the size of the area is smaller than the size of the current image block, and it is not a sub-image block obtained by dividing the current image block), the encoded motion information around the current image block can be used to provide more motion information for each area, thereby improving the accuracy of the motion information.
[0064] The current image block in the embodiment of the present application is any image unit in the encoding and decoding process, and the encoding and decoding process is performed on the current image block. The current image block can be the current coding unit, that is, the CU in the above embodiment, and the current image block is used as an example in the following.
[0065] For example, see Figure 4 As shown, the current image block includes 9 regions, such as region f1 to region f9, which are regions within the current image block, not sub-image blocks obtained by dividing the current image block.
[0066] Different regions in region f1-region f9 may correspond to the same or different motion information. Therefore, without dividing the current image block, the current image block may correspond to multiple motion information, such as region f1 corresponds to motion information 1, region f2 corresponds to motion information 2, and so on.
[0067] In addition, when determining the motion information of region f5, the motion information of image block A1, image block A2, image block A3, image block E, image block B1, image block B2, and image block B3 can be used, that is, the motion information of the encoded image blocks around the current image block can be used, so as to provide more motion information for region f5. Of course, when determining the motion information of other regions of the current image block, the motion information of image block A1, image block A2, image block A3, image block E, image block B1, image block B2, and image block B3 can also be used.
[0068] The following describes the method for determining motion information and prediction mode in combination with several specific embodiments.
[0069] Example 1: See Figure 5 FIG. 1 is a flow chart of a method for determining motion information in an embodiment of the present application. The method can be applied to a decoding end. The method can include the following steps:
[0070] Step 501 : creating a motion information prediction mode candidate list for a current image block; wherein the motion information prediction mode candidate list may include at least one motion information prediction mode.
[0071] The motion information prediction mode may include but is not limited to: a first motion information prediction mode (such as a DC prediction mode) and / or a second motion information prediction mode (such as an angle prediction mode).
[0072] In one example, the first motion information prediction mode is used to indicate the selection of at least two designated blocks from the surrounding blocks of the current image block as matching blocks, and the motion information of the matching blocks is weightedly calculated as the target motion information of the current image block. The second motion information prediction mode is used to indicate a preconfigured angle, and to select a matching block for a designated area inside the current image block from the surrounding blocks of the current image block according to the preconfigured angle, and to determine the target motion information of the designated area according to the motion information of the matching block, wherein the matching block is a block or multiple blocks at a designated position determined from the surrounding blocks according to the preconfigured angle. The designated position includes multiple situations, one is a block pointed to by the preconfigured angle, and the other is when the preconfigured angle points to the middle of two blocks, which can be one of the blocks, two blocks, or two blocks and blocks around the two blocks.
[0073] The surrounding blocks include blocks adjacent to the current image block; or the surrounding blocks include blocks adjacent to the current image block and non-adjacent blocks. Of course, the surrounding blocks may also include other blocks, such as configuration blocks filled with surrounding blocks missing from the current image block when the current image block is a boundary block, and there is no limitation on this.
[0074] Step 502: Select a motion information prediction mode from the motion information prediction mode candidate list, and determine the selected motion information prediction mode as a target motion information prediction mode of the current image block.
[0075] Step 503: determine the target motion information of the current image block according to the target motion information prediction mode.
[0076] Specifically, the matching block corresponding to the current image block may be determined according to the target motion information prediction mode, and the target motion information of the current image block may be determined according to the available motion information of the matching block.
[0077] In one example, determining the matching block corresponding to the current image block according to the target motion information prediction mode may include: if the target motion information prediction mode is the first motion information prediction mode, selecting at least two blocks from the surrounding blocks of the current image block as the matching blocks of the current image block according to the first motion information prediction mode. By means of this motion information prediction mode, shared motion information can be determined for the current image block, and the motion information is the existing motion information of the surrounding blocks.
[0078] If the target motion information prediction mode is the second motion information prediction mode, then according to the position of the designated area inside the current image block and the preconfigured angle indicated by the second motion information prediction mode, one or more blocks at the designated position are determined from the peripheral blocks of the current image block as the matching block. Through this motion information prediction mode, different motion information can be configured for different areas of the current image block, and these motion information are the existing motion information of the peripheral blocks.
[0079] In one example, after determining a matching block corresponding to a current image block according to a target motion information prediction mode, if the matching block corresponding to the current image block generated according to the target motion information prediction mode is an intra-frame block, motion information of the intra-frame block is generated according to motion information of inter-frame blocks (such as adjacent inter-frame blocks or non-adjacent inter-frame blocks) around the intra-frame block; or, motion information including a zero motion vector may be generated for the intra-frame block; or, motion information is generated for the intra-frame block according to the available motion information in the time domain.
[0080] Before determining the target motion information of the current image block according to the target motion information prediction mode, available motion information of the surrounding blocks can also be obtained by performing at least one of the following processing on any surrounding blocks: (1) if the surrounding block is an inter-frame block, weighting the motion information of the inter-frame block and the motion information of at least one block around the inter-frame block to obtain the adjusted motion information of the inter-frame block; (2) if the surrounding block is an uncoded block, determining at least one spatial domain available motion information and / or temporal domain available motion information of the uncoded block as the motion information of the uncoded block; or, weighting at least two spatial domain available motion information and / or temporal domain available motion information of the uncoded block to obtain the motion information of the uncoded block; or, Generate a motion information including a zero motion vector for the uncoded block; (3) if the surrounding block is an intra-frame block, determine the motion information of the intra-frame block according to the motion information of the inter-frame blocks (such as adjacent inter-frame blocks or non-adjacent inter-frame blocks) around the intra-frame block; or, generate a motion information including a zero motion vector for the intra-frame block; or, generate a motion information for the intra-frame block according to the temporal available motion information; (4) if the current image block is a boundary block, the surrounding blocks include at least one configuration block, generate the motion information of the configuration block according to the spatial available motion information; or, generate a motion information including a zero motion vector for the configuration block; or, generate a motion information for the intra-frame block according to the temporal available motion information.
[0081] In one example, determining the target motion information of the current image block according to the available motion information of the matching block may include but is not limited to: if the number of matching blocks is one, determining the available motion information of the one matching block as the target motion information of the current image block; or, if the number of matching blocks is one, transforming the available motion information of the one matching block, and determining the transformed motion information as the target motion information of the current image block; or, if the number of matching blocks is at least two, selecting a matching block from the at least two matching blocks, and determining the available motion information of the selected matching block as the target motion information of the current image block; or, if the number of matching blocks is at least two If the number of matching blocks is at least two, a matching block is selected from the at least two matching blocks, available motion information of the selected matching block is transformed, and the transformed motion information is determined as the target motion information of the current image block; or, if the number of matching blocks is at least two, a weighted operation is performed on the available motion information of the at least two matching blocks, and the motion information after the weighted operation is determined as the target motion information of the current image block; or, if the number of matching blocks is at least two, the available motion information of the at least two matching blocks is first transformed, and then a weighted operation is performed on the transformed motion information, and the motion information obtained after the weighted operation is determined as the target motion information of the current image block.
[0082] The transforming of the available motion information of the matching block may include, but is not limited to: performing a scaling transformation on the available motion information of the matching block in a specified direction to obtain the transformed motion information.
[0083] In the above embodiment, selecting a motion information prediction mode from a motion information prediction mode candidate list, and determining the selected motion information prediction mode as a target motion information prediction mode for a current image block may include: receiving a coded bit stream from an encoding end, the coded bit stream carrying first indication information, the first indication information being used to indicate index information of the target motion information prediction mode; based on the first indication information, selecting a motion information prediction mode corresponding to the index information from the motion information prediction mode candidate list, and determining the selected motion information prediction mode as the target motion information prediction mode for the current image block.
[0084] In another example, a coded bit stream can also be received from the encoding end, and the coded bit stream can carry second indication information, and the second indication information is used to indicate pre-configured motion information; based on the second indication information, the target motion information of the current image block is determined according to the pre-configured motion information of the current image block; or, a coded bit stream can be received from the encoding end, and the coded bit stream can carry third indication information, and the third indication information is used to indicate pre-configured difference information, and the pre-configured difference information is used to indicate a motion vector difference; based on the third indication information, the target motion information of the current image block is determined according to the pre-configured difference information of the current image block.
[0085] It can be seen from the above technical solution that in the embodiment of the present application, the target motion information prediction mode of the current image block can be determined, and the target motion information of the current image block can be determined according to the target motion information prediction mode. There is no need to divide the current image block, which effectively solves the bit overhead caused by sub-block division. On the basis of not dividing the current image block into sub-blocks, motion information is provided for each designated area of the current image block, and different designated areas of the current image block can correspond to the same or different motion information, thereby improving the coding performance, solving the problem of transmitting a large number of motion vectors, and saving a large number of bits.
[0086] Example 2: See Figure 6 FIG. 1 is a flow chart of a method for determining motion information in an embodiment of the present application. The method can be applied to an encoding end. The method can include the following steps:
[0087] Step 601 : creating a motion information prediction mode candidate list for a current image block; wherein the motion information prediction mode candidate list may include at least one motion information prediction mode.
[0088] The motion information prediction mode may include but is not limited to: a first motion information prediction mode (such as a DC prediction mode) and / or a second motion information prediction mode (such as an angle prediction mode).
[0089] In one example, the first motion information prediction mode is used to indicate the selection of at least two designated blocks from the surrounding blocks of the current image block as matching blocks, and the motion information of the matching blocks is weightedly calculated as the target motion information of the current image block. The second motion information prediction mode is used to indicate a preconfigured angle, and to select a matching block for a designated area inside the current image block from the surrounding blocks of the current image block according to the preconfigured angle, and to determine the target motion information of the designated area according to the motion information of the matching block, wherein the matching block is a block or multiple blocks at a designated position determined from the surrounding blocks according to the preconfigured angle. The designated position includes multiple situations, one is a block pointed to by the preconfigured angle, and the other is when the preconfigured angle points to the middle of two blocks, which can be one of the blocks, two blocks, or two blocks and blocks around the two blocks.
[0090] The surrounding blocks include blocks adjacent to the current image block; or the surrounding blocks include blocks adjacent to the current image block and non-adjacent blocks. Of course, the surrounding blocks may also include other blocks, such as configuration blocks filled with surrounding blocks missing from the current image block when the current image block is a boundary block, and there is no limitation on this.
[0091] Step 602: Select a motion information prediction mode from the motion information prediction mode candidate list, and determine the selected motion information prediction mode as the target motion information prediction mode of the current image block.
[0092] Specifically, for each motion information prediction mode in the motion information prediction mode candidate list, a matching block corresponding to the current image block is determined from the peripheral blocks of the current image block according to the motion information prediction mode, and available motion information of the matching block is obtained, and a rate distortion cost corresponding to the motion information prediction mode is determined at least according to the available motion information of the matching block. Then, a motion information prediction mode can be selected from the motion information prediction mode candidate list according to the rate distortion cost corresponding to each motion information prediction mode in the motion information prediction mode candidate list, and the selected motion information prediction mode is determined as the target motion information prediction mode of the current image block.
[0093] Wherein, determining the matching block corresponding to the current image block according to the motion information prediction mode may include but is not limited to: if the motion information prediction mode is the first motion information prediction mode, then selecting at least two blocks from the surrounding blocks of the current image block as the matching blocks of the current image block according to the first motion information prediction mode. Alternatively, if the motion information prediction mode is the second motion information prediction mode, then determining one or more blocks at a specified position from the surrounding blocks of the current image block as the matching block according to the position of the specified area inside the current image block and the preconfigured angle indicated by the second motion information prediction mode.
[0094] In one example, after determining the matching block corresponding to the current image block according to the motion information prediction mode, if the matching block corresponding to the current image block generated according to the target motion information prediction mode is an intra-frame block, the motion information of the intra-frame block can also be generated according to the motion information of the inter-frame blocks (such as adjacent inter-frame blocks, or non-adjacent inter-frame blocks) around the intra-frame block; or, motion information including a zero motion vector can be generated for the intra-frame block; or, motion information can be generated for the intra-frame block according to the time domain available motion information.
[0095] Before obtaining the available motion information of the matching block, the available motion information of the surrounding blocks is obtained by performing at least one of the following processing on any surrounding blocks: (1) if the surrounding block is an inter-frame block, weighting the motion information of the inter-frame block and the motion information of at least one block around the inter-frame block to obtain the adjusted motion information of the inter-frame block; (2) if the surrounding block is an uncoded block, determining at least one spatial domain available motion information and / or temporal domain available motion information of the uncoded block as the motion information of the uncoded block; or, weighting at least two spatial domain available motion information and / or temporal domain available motion information of the uncoded block to obtain the motion information of the uncoded block; or, generating a motion information including a zero motion vector for the uncoded block. ; (3) if the surrounding block is an intra-frame block, the motion information of the intra-frame block is determined according to the motion information of the inter-frame blocks (such as adjacent inter-frame blocks or non-adjacent inter-frame blocks) around the intra-frame block; or, a motion information including a zero motion vector is generated for the intra-frame block; or, a motion information is generated for the intra-frame block according to the temporal available motion information; (4) if the current image block is a boundary block, the surrounding blocks include configuration blocks, the motion information of the configuration blocks is generated according to the spatial available motion information, the surrounding blocks include at least one configuration block, the motion information of the configuration blocks is generated according to the spatial available motion information; or, a motion information including a zero motion vector is generated for the configuration block; or, a motion information is generated for the intra-frame block according to the temporal available motion information.
[0096] Among them, according to the rate-distortion cost corresponding to each motion information prediction mode in the motion information prediction mode candidate list, selecting a motion information prediction mode from the motion information prediction mode candidate list may include but is not limited to: based on the rate-distortion cost corresponding to each motion information prediction mode, selecting the motion information prediction mode with the smallest rate-distortion cost from the motion information prediction mode candidate list.
[0097] In one example, after the selected motion information prediction mode is determined as the target motion information prediction mode of the current image block, the first rate-distortion cost corresponding to the target motion information prediction mode can also be obtained, and the second rate-distortion cost corresponding to the pre-configured motion information or pre-configured difference information of the current image block can be obtained, and the difference information is used to indicate the motion vector difference. If the first rate-distortion cost is less than the second rate-distortion cost, a coded bit stream carrying the first indication information can be sent to the decoding end, and the first indication information is used to indicate the index information of the target motion information prediction mode. If the first rate-distortion cost is greater than the second rate-distortion cost, a coded bit stream carrying the second indication information can be sent to the decoding end, and the second indication information is used to indicate the pre-configured motion information; or, if the first rate-distortion cost is greater than the second rate-distortion cost, a coded bit stream carrying the third indication information can be sent to the decoding end, and the third indication information is used to indicate the pre-configured difference information.
[0098] It can be seen from the above technical solution that in the embodiment of the present application, the target motion information prediction mode of the current image block can be determined, and the target motion information of the current image block can be determined according to the target motion information prediction mode. There is no need to divide the current image block, which effectively solves the bit overhead caused by sub-block division. On the basis of not dividing the current image block into sub-blocks, motion information is provided for each designated area of the current image block, and different designated areas of the current image block can correspond to the same or different motion information, thereby improving the coding performance, solving the problem of transmitting a large number of motion vectors, and saving a large number of bits.
[0099] Example 3: See Figure 7 FIG. 1 is a flow chart of a method for determining motion information, the method comprising:
[0100] Step 701: The encoder creates a motion information prediction mode candidate list for the current image block; wherein the motion information prediction mode candidate list may include at least one motion information prediction mode.
[0101] Step 702: The decoding end creates a motion information prediction mode candidate list for the current image block; wherein the motion information prediction mode candidate list may include at least one motion information prediction mode.
[0102] The motion information prediction mode candidate list at the encoding end is the same as the motion information prediction mode candidate list at the decoding end, that is, the order of the motion information prediction modes of the two is exactly the same.
[0103] Step 703: the encoder selects a motion information prediction mode from the motion information prediction mode candidate list, and determines the selected motion information prediction mode as the target motion information prediction mode of the current image block.
[0104] Step 704: the encoder sends a coded bit stream to the decoder, where the coded bit stream is used to carry first indication information, and the first indication information is used to indicate index information of a target motion information prediction mode.
[0105] Step 705: The decoding end receives a coded bit stream from the encoding end, where the coded bit stream carries first indication information, where the first indication information is used to indicate index information of a target motion information prediction mode.
[0106] In step 706, the decoding end selects a motion information prediction mode corresponding to the index information from the motion information prediction mode candidate list (i.e., the motion information prediction mode candidate list obtained in step 702), and determines the selected motion information prediction mode as the target motion information prediction mode of the current image block.
[0107] Step 707: The decoder determines the target motion information of the current image block according to the target motion information prediction mode. Specifically, the matching block corresponding to the current image block can be determined according to the target motion information prediction mode, and the target motion information of the current image block can be determined according to the available motion information of the matching block.
[0108] It can be seen from the above technical solution that in the embodiment of the present application, the target motion information prediction mode of the current image block can be determined, and the target motion information of the current image block can be determined according to the target motion information prediction mode. There is no need to divide the current image block, which effectively solves the bit overhead caused by sub-block division. On the basis of not dividing the current image block into sub-blocks, motion information is provided for each designated area of the current image block, and different designated areas of the current image block can correspond to the same or different motion information, thereby improving the coding performance, solving the problem of transmitting a large number of motion vectors, and saving a large number of bits.
[0109] Embodiment 4: In the above embodiments, it involves creating a motion information prediction mode candidate list for the current image block, that is, both the encoding end and the decoding end need to create a motion information prediction mode candidate list for the current image block.
[0110] The motion information prediction mode candidate list of the encoding end and the motion information prediction mode candidate list of the decoding end are the same according to the protocol agreement. The encoding end and the decoding end can adopt the same strategy to create the same motion information prediction mode candidate list. Of course, the above methods are just a few examples, and there is no limitation on this creation method, as long as the encoding end and the decoding end have the same motion information prediction mode candidate list.
[0111] A motion information prediction mode candidate list may be created for the current image block, that is, all regions within the current image block may correspond to the same motion information prediction mode candidate list; or multiple motion information prediction mode candidate lists may be created for the current image block. In addition, different current image blocks may correspond to the same or different motion information prediction mode candidate lists.
[0112] For the convenience of description, in this embodiment, it is taken as an example to create a motion information prediction mode candidate list for each current image block. For example, motion information prediction mode candidate list 1 can be created for the current image block A, and motion information prediction mode candidate list 2 can be created for the current image block B, and so on.
[0113] In one example, the motion information prediction mode candidate list may include at least one motion information prediction mode, and the motion information prediction mode may include but is not limited to: a first motion information prediction mode (such as a DC prediction mode) and / or a second motion information prediction mode (such as an angle prediction mode). In this embodiment, the first motion information prediction mode is a DC prediction mode for predicting the motion information of the current image block, and the second motion information prediction mode is an angle prediction mode for predicting the motion information of the current image block. Of course, the first motion information prediction mode can also be other types of prediction modes, and the second motion information prediction mode can also be other types of prediction modes, and there is no limitation on this.
[0114] For example, the motion information prediction mode candidate list may include DC prediction mode 1, DC prediction mode 2, and DC prediction mode 3. Alternatively, the motion information prediction mode candidate list may include angle prediction mode 1, angle prediction mode 2, and angle prediction mode 3. Alternatively, the motion information prediction mode candidate list may include DC prediction mode 2, angle prediction mode 2, and angle prediction mode 3. For the convenience of description, DC prediction mode 2, angle prediction mode 2, and angle prediction mode 3 are used as examples for description.
[0115] For each DC prediction mode in the motion information prediction mode candidate list, it is used to indicate that at least two designated blocks are selected from the surrounding blocks of the current image block as matching blocks, and the motion information of the matching blocks is weightedly calculated as the target motion information of the current image block. The surrounding blocks of the current image block may include but are not limited to: blocks adjacent to the current image block, or blocks adjacent to the current image block and non-adjacent blocks. Of course, the surrounding blocks may also include other blocks, and there is no limitation on these surrounding blocks.
[0116] For example, see Fig. 8A As shown, the surrounding blocks of the current image block may include the adjacent image block (i.e., image block E) at the upper left of the current image block; in the upper peripheral area of the current image block, N1 adjacent image blocks traversed to the right starting from image block E, such as image block B1, image block B2, image block B3, image block D1, and so on, until N1 image blocks are traversed; in the left peripheral area of the current image block, N2 adjacent image blocks traversed downward starting from image block E, such as image block A1, image block A2, image block A3, image block C1, and so on, until N2 image blocks are traversed.
[0117] In summary, the surrounding blocks of the current image block may include but are not limited to blocks adjacent to the current image block, blocks non-adjacent to the current image block, and even image blocks in other adjacent frames, without limitation.
[0118] exist Fig. 8A In the figure, the image blocks that the dotted line passes through can all be the surrounding blocks of the current image block, and there is no restriction on this. Of course, the image blocks that the dotted line does not pass through can also be the surrounding blocks of the current image block, and there is no restriction on this.
[0119] For example, DC prediction mode 1 is used to indicate that a specified image block A1 and an image block B2 are selected from the surrounding blocks of the current image block as matching blocks, and the motion information of the image block A1 and the motion information of the image block B2 are weightedly calculated, and then the calculation result is used as the target motion information of the current image block. For another example, DC prediction mode 2 is used to indicate that a specified image block A2 and an image block B2 are selected from the surrounding blocks of the current image block as matching blocks, and the motion information of the image block A2 and the motion information of the image block B2 are weightedly calculated, and then the calculation result is used as the target motion information of the current image block, and so on.
[0120] Among them, DC prediction mode 1 is used to indicate the position index of image block A1 and the position index of image block B2, so that image block A1 and image block B2 can be used as matching blocks of the current image block. In addition, DC prediction mode 2 is used to indicate the position index of image block A2 and the position index of image block B2, so that image block A2 and image block B2 can be used as matching blocks of the current image block, and so on.
[0121] The motion information of the image block A1 and the motion information of the image block B2 are weightedly calculated, including: taking an average of the motion vector of the image block A1 and the motion vector of the image block B2; or, setting a coefficient 1 for the motion vector of the image block A1, setting a coefficient 2 for the motion vector of the image block B2, and performing a weighted calculation using the motion vector of the image block A1 and the coefficient 1, and the motion vector of the image block B2 and the coefficient 2.
[0122] Of course, the above is only an example of weighted calculation of motion information, and there is no limitation to this.
[0123] For each angle prediction mode in the candidate list of motion information prediction modes, a preconfigured angle is indicated, and the angle prediction mode is used to indicate the selection of a matching block for a specified area inside the current image block from the surrounding blocks of the current image block according to the preconfigured angle, and the target motion information of the specified area is determined according to the motion information of the matching block. The matching block can be a block or multiple blocks at a specified position determined from the surrounding blocks according to the preconfigured angle. Among them, the specified position can include multiple situations, one is a block pointed to by the angle, and the other is when the angle points to the middle of two blocks, it can be one of the blocks, it can also be two blocks, or it can be two blocks and surrounding blocks, and there is no limitation on this. The surrounding blocks of the current image block can include but are not limited to: blocks adjacent to the current image block, or blocks adjacent to the current image block and non-adjacent blocks. Of course, the surrounding blocks can also include other blocks, and there is no limitation on this surrounding blocks.
[0124] For example, angle prediction mode 1 is used to indicate that the preconfigured angle is 90 degrees, and a matching block is selected for the specified area from the surrounding blocks of the current image block according to the preconfigured angle, see Figure 8B As shown, the matching block of the designated area f1 is the image block B1, and the target motion information of the designated area f1 is determined according to the motion information of the image block B1. The matching block of the designated area f2 is the image block B2, and the target motion information of the designated area f2 is determined according to the motion information of the image block B2. The matching block of the designated area f3 is the image block B3, and the target motion information of the designated area f3 is determined according to the motion information of the image block B3, and so on.
[0125] For another example, angle prediction mode 2 is used to indicate that the preconfigured angle is 180 degrees, and a matching block is selected for a specified area from the surrounding blocks of the current image block according to the preconfigured angle, see Figure 8CAs shown, the matching block of the designated area f1 is the image block A1, and the target motion information of the designated area f1 is determined based on the motion information of the image block A1. The matching block of the designated area f2 is the image block A1, and the target motion information of the designated area f2 is determined based on the motion information of the image block A1. The matching block of the designated area f3 is the image block A1, and the target motion information of the designated area f3 is determined based on the motion information of the image block A1, and so on.
[0126] For another example, angle prediction mode 3 is used to indicate that the preconfigured angle is 45 degrees, and a matching block is selected for a specified area from the surrounding blocks of the current image block according to the preconfigured angle, see Fig.8D As shown, the matching blocks of the designated area f5 are the image block B3 and the image block D1. The target motion information of the designated area f5 can be determined according to the motion information of the image block B3 and the motion information of the image block D1. For details, please refer to the subsequent embodiments.
[0127] Of course, the above methods are just a few examples of preconfigured angles, and there is no limitation on the preconfigured angles. The preconfigured angles can be any angle between 0 and 360 degrees. The horizontal direction to the right of the center point of the specified area can be positioned as 0 degrees. In this way, any angle rotated counterclockwise from 0 degrees can be a preconfigured angle, but it is not limited to positioning the horizontal direction to the right of the center point of the specified area as 0 degrees. The horizontal direction to the left of the center point of the specified area can also be positioned as 0 degrees, or the center point of the specified area can be 0 degrees in other directions.
[0128] In practical applications, the preconfigured angle may be a fractional angle, such as 22.5 degrees, and there is no limitation on this.
[0129] In one example, the DC prediction mode in the embodiment of the present application can be a DC prediction mode for predicting motion information, that is, used in the inter-frame coding process, rather than in the intra-frame coding process, and the DC prediction mode selects a matching block rather than a matching pixel. Similarly, the angle prediction mode can be an angle prediction mode for predicting motion information, that is, used in the inter-frame coding process, rather than in the intra-frame coding process, and the angle prediction mode selects a matching block rather than a matching pixel.
[0130] Based on the above analysis process, both the encoding end and the decoding end can create a motion information prediction mode candidate list, which will be described below using DC prediction mode 2, angle prediction mode 2 and angle prediction mode 3 as examples.
[0131] Embodiment 5: In the above embodiment, the encoder selects a motion information prediction mode from a motion information prediction mode candidate list, and determines the selected motion information prediction mode as a target motion information prediction mode for the current image block. The following describes this process, which may include the following steps:
[0132] Step a1: for each motion information prediction mode in the motion information prediction mode candidate list, determine a matching block corresponding to the current image block according to the motion information prediction mode.
[0133] In one example, the step a1 may include but is not limited to: if the motion information prediction mode is a DC prediction mode (a first motion information prediction mode), then at least two blocks are selected from the peripheral blocks of the current image block according to the DC prediction mode as matching blocks of the current image block. If the motion information prediction mode is an angle prediction mode (a second motion information prediction mode), then according to the position of a designated area inside the current image block and a preconfigured angle indicated by the angle prediction mode, one or more blocks at a designated position are determined from the peripheral blocks of the current image block as matching blocks.
[0134] For example, the motion information prediction mode candidate list may include DC prediction mode 2, angle prediction mode 2, and angle prediction mode 3. For DC prediction mode 2, it is used to indicate the position index of image block A2 and the position index of image block B2. Therefore, the specified image block A2 and image block B2 can be selected from the surrounding blocks of the current image block as matching blocks. For angle prediction mode 2, it is used to indicate that the preconfigured angle is 180 degrees. Therefore, the matching block of the specified area f1 is image block A1, the matching block of the specified area f2 is image block A1, and the matching block of the specified area f3 is image block A1. For angle prediction mode 3, it is used to indicate that the preconfigured angle is 45 degrees. Therefore, the matching blocks of the specified area f5 are image block B3 and image block D1. Of course, the above are just examples of several specified areas, and other specified areas can also be used, and there is no limitation to this.
[0135] Step a2: determining the rate-distortion cost corresponding to the motion information prediction mode according to the motion information of the matching block.
[0136] In one example, the encoder can determine the rate-distortion cost of DC prediction mode 2 based on the motion information of image block A2 and the motion information of image block B2. In addition, the encoder can determine the rate-distortion cost of angle prediction mode 2 based on the motion information of image block A1. In addition, the encoder can determine the rate-distortion cost of angle prediction mode 3 based on the motion information of image block B3 and the motion information of image block D1.
[0137] In one example, based on the motion information of image block A2 and the motion information of image block B2, the rate-distortion principle can be used to determine the rate-distortion cost of DC prediction mode 2, and the rate-distortion cost can be determined by the following formula: J(mode)=D+λ*R, where D represents Distortion, which can usually be measured using the SSE indicator, which refers to the mean square sum of the differences between the reconstructed image block and the source image; λ is the Lagrange multiplier, and R is the actual number of bits required for encoding the image block in this mode, including the sum of bits required for encoding mode information, motion information, residuals, etc., and there is no restriction on this determination method. Similarly, the rate-distortion cost of angle prediction mode 2 and the rate-distortion cost of angle prediction mode 3 can also be determined.
[0138] Step a3: select a motion information prediction mode from the motion information prediction mode candidate list according to the rate-distortion cost corresponding to each motion information prediction mode in the motion information prediction mode candidate list, and determine the selected motion information prediction mode as the target motion information prediction mode of the current image block.
[0139] Specifically, based on the rate distortion cost corresponding to each motion information prediction mode, a motion information prediction mode with the minimum rate distortion cost is selected from the motion information prediction mode candidate list. Of course, the above method is only an example, and there is no limitation on the method of selecting the motion information prediction mode.
[0140] For example, assuming that the rate-distortion cost of DC prediction mode 2 is smaller than that of angular prediction mode 2, and the rate-distortion cost of DC prediction mode 2 is smaller than that of angular prediction mode 3, DC prediction mode 2 with the smallest rate-distortion cost is selected, that is, DC prediction mode 2 is the target motion information prediction mode.
[0141] Embodiment 6: In the above embodiment, the decoding end selects a motion information prediction mode from the motion information prediction mode candidate list, and determines the selected motion information prediction mode as the target motion information prediction mode of the current image block. The following describes this process, which may include the following steps:
[0142] Step b1: The encoding end sends a coded bit stream to the decoding end, where the coded bit stream is used to carry first indication information, and the first indication information is used to indicate index information of a target motion information prediction mode.
[0143] For example, after the encoding end determines the selected motion information prediction mode as the target motion information prediction mode of the current image block, it can determine the index information of the target motion information prediction mode in the motion information prediction mode candidate list. If the target motion information prediction mode is the second motion information prediction mode in the motion information prediction mode candidate list, then the index information of the target motion information prediction mode can be 10, indicating 2.
[0144] Step b2: The decoding end receives a coded bit stream from the encoding end, where the coded bit stream carries first indication information, and the first indication information is used to indicate index information of a target motion information prediction mode.
[0145] Step b3, the decoding end selects the motion information prediction mode corresponding to the index information from the motion information prediction mode candidate list, and determines the selected motion information prediction mode as the target motion information prediction mode of the current image block. For example, when the index information of the first indication information used to indicate the target motion information prediction mode is 2, the decoding end can determine the second motion information prediction mode in the motion information prediction mode candidate list as the target motion information prediction mode of the current image block.
[0146] In one example, the encoder and decoder can fix a motion information prediction mode, so that the decoder does not need to perform any syntax analysis and can directly determine the target motion information prediction mode. Further, a flag can be first encoded to determine whether to use the motion information prediction mode to determine the target motion information. In the case of using the motion information prediction mode to determine the target motion information, the encoder can fix a motion information prediction mode, the encoder does not need any bit overhead, and the decoder does not need to perform any syntax analysis and can directly determine the target motion information prediction mode.
[0147] Embodiment 7: In the above embodiment, the decoding end determines the target motion information of the current image block according to the target motion information prediction mode. The following is an explanation of this process, which may include:
[0148] Step c1: determining a matching block corresponding to the current image block according to the target motion information prediction mode.
[0149] In one example, step c1 may include: if the target motion information prediction mode is a DC prediction mode, at least two blocks may be selected from the peripheral blocks of the current image block according to the DC prediction mode as matching blocks of the current image block. If the target motion information prediction mode is an angle prediction mode, one or more blocks at a specified position may be determined from the peripheral blocks of the current image block as matching blocks according to the position of a specified area inside the current image block and a preconfigured angle indicated by the angle prediction mode.
[0150] For example, if the target motion information prediction mode is DC prediction mode 2, since DC prediction mode 2 is used to indicate the position index of image block A2 and the position index of image block B2, the specified image block A2 and image block B2 are selected from the surrounding blocks of the current image block as matching blocks. If the target motion information prediction mode is angle prediction mode 2, since angle prediction mode 2 is used to indicate that the preconfigured angle is 180 degrees, the matching block of the specified area f1 is image block A1, the matching block of the specified area f2 is image block A1, and so on.
[0151] Step c2: determining target motion information of the current image block according to the motion information of the matching block.
[0152] Wherein, determining the target motion information of the current image block according to the motion information of the matching block may include:
[0153] Method 1: If the number of matching blocks is one, the motion information of one matching block can be determined as the target motion information of the current image block. For example, if the matching block is image block A1, the motion information of image block A1 can be determined as the target motion information of the current image block, which will not be described in detail.
[0154] Method 2: If the number of matching blocks is one, the motion information of one matching block can be transformed, and the transformed motion information is determined as the target motion information of the current image block. For example, if the matching block is image block A1, the motion information of image block A1 can be transformed to obtain the transformed motion information, and the transformed motion information is determined as the target motion information of the current image block.
[0155] Mode 3: If the number of matching blocks is at least two, then one matching block is selected from the at least two matching blocks, and the motion information of the selected matching block is determined as the target motion information of the current image block. For example, if image block A2 and image block B2 are used as matching blocks, then one image block A2 is selected from image block A2 and image block B2, and the motion information of image block A2 is determined as the target motion information of the current image block.
[0156] Mode 4: If the number of matching blocks is at least two, one matching block is selected from the at least two matching blocks, the motion information of the selected matching block is transformed, and the transformed motion information is determined as the target motion information of the current image block. For example, if image block A2 and image block B2 are used as matching blocks, one image block A2 is selected from image block A2 and image block B2, the motion information of image block A2 is transformed, and the transformed motion information is determined as the target motion information of the current image block.
[0157] Method 5: If the number of matching blocks is at least two, a weighted operation may be performed on the motion information of the at least two matching blocks, and the motion information after the weighted operation is determined as the target motion information of the current image block. For example, if image block A2 and image block B2 are used as matching blocks, a weighted operation may be performed on the motion information of image block A2 and the motion information of image block B2, and the specific weighted operation method is not limited, and the motion information after the weighted operation is determined as the target motion information of the current image block.
[0158] Method 6: If the number of matching blocks is at least two, the motion information of at least two matching blocks is first transformed, and then the transformed motion information is weighted, and the motion information obtained after the weighted operation is determined as the target motion information of the current image block. For example, if image block A2 and image block B2 are used as matching blocks, the motion information of image block A2 can be transformed to obtain the transformed motion information 1, and the motion information of image block B2 can be transformed to obtain the transformed motion information 2, and then, the motion information 1 and the motion information 2 are weighted, and the specific weighted operation method is not limited, and the motion information after the weighted operation can be determined as the target motion information of the current image block.
[0159] Of course, the above method is only an example, and there is no limitation on the method of determining the target motion information.
[0160] In the above embodiment, the motion information of the matching block is transformed, which may include but is not limited to: performing a scaling transformation on the motion information of the matching block in a specified direction to obtain the transformed motion information. Of course, scaling transformation is only a transformation method, and other transformation methods may also be used without limitation. The specified direction may be the motion direction of the motion vector of the current image block, or the motion direction of the motion vector of the matching block, and of course, may be other directions without limitation. The scaling transformation of the motion information may be implemented in a conventional manner, which will not be repeated here.
[0161] Embodiment 8: In addition to obtaining the target motion information in the above manner, the motion information of the current image block may also be obtained in a traditional manner. For the sake of distinction, the motion information obtained in the traditional manner may be referred to as pre-configured motion information. On this basis, the method of the embodiment of the present application may further include:
[0162] After the encoding end determines the target motion information prediction mode of the current image block, it can obtain the first rate-distortion cost corresponding to the target motion information prediction mode, such as using the rate-distortion principle to determine the first rate-distortion cost corresponding to the target motion information prediction mode, and obtain the second rate-distortion cost corresponding to the pre-configured motion information of the current image block, such as using the rate-distortion principle to determine the second rate-distortion cost corresponding to the pre-configured motion information.
[0163] Further, if the first rate-distortion cost is less than the second rate-distortion cost, the encoder may send a coded bit stream carrying first indication information to the decoder, wherein the first indication information is used to indicate index information of the target motion information prediction mode, see the first indication information in Embodiment 6. If the first rate-distortion cost is greater than the second rate-distortion cost, the encoder may send a coded bit stream carrying second indication information to the decoder, wherein the second indication information is used to indicate the preconfigured motion information.
[0164] The decoding end receives the encoded bit stream from the encoding end. If the encoded bit stream carries first indication information, the first indication information is used to indicate the index information of the target motion information prediction mode. Therefore, based on the first indication information, the decoding end selects the motion information prediction mode corresponding to the index information from the motion information prediction mode candidate list, and determines the selected motion information prediction mode as the target motion information prediction mode of the current image block. The specific implementation method can be found in Example 6, which will not be repeated here.
[0165] In addition, if the encoded bit stream carries second indication information, the second indication information is used to indicate the pre-configured motion information. Therefore, based on the second indication information, the decoding end can determine the target motion information of the current image block according to the pre-configured motion information of the current image block. For example, the pre-configured motion information of the current image block can be determined as the target motion information of the current image block, and there is no restriction on this determination method.
[0166] In another example, after the encoding end determines the target motion information prediction mode of the current image block, it can obtain the first rate-distortion cost corresponding to the target motion information prediction mode, such as using the rate-distortion principle to determine the first rate-distortion cost corresponding to the target motion information prediction mode, and obtain the second rate-distortion cost corresponding to the pre-configured difference information of the current image block, such as using the rate-distortion principle to determine the second rate-distortion cost corresponding to the pre-configured difference information. If the first rate-distortion cost is less than the second rate-distortion cost, the encoding end can send a coded bit stream carrying first indication information to the decoding end, and the first indication information is used to indicate the index information of the target motion information prediction mode, see the first indication information of Example 6. If the first rate-distortion cost is greater than the second rate-distortion cost, the encoding end can send a coded bit stream carrying third indication information to the decoding end, and the third indication information is used to indicate the pre-configured difference information, and the pre-configured difference information is used to indicate the motion vector difference.
[0167] The decoding end receives the encoded bit stream from the encoding end. If the encoded bit stream carries first indication information, the first indication information is used to indicate the index information of the target motion information prediction mode. Therefore, based on the first indication information, the decoding end selects the motion information prediction mode corresponding to the index information from the motion information prediction mode candidate list, and determines the selected motion information prediction mode as the target motion information prediction mode of the current image block. The specific implementation method can be found in Example 6, which will not be repeated here.
[0168] If the encoded bit stream carries third indication information, the third indication information is used to indicate pre-configured difference information, and the pre-configured difference information is used to indicate a motion vector difference. Based on the third indication information, the decoding end determines the target motion information of the current image block according to the pre-configured difference information of the current image block. For example, the target motion information of the current image block is determined based on the pre-configured difference information of the current image block and certain specified motion information, such as determining the sum of the pre-configured difference information and the specified motion information as the target motion information. There is no restriction on this determination method.
[0169] In the above embodiment, the index information in the coded bit stream may be the index information encoded by a unary truncation code or the index information encoded by a fixed-length coding method. Of course, other coding methods may also be used to encode the index information, and there is no limitation on this coding method.
[0170] Among them, the unary truncation code can be used to encode the index information of the target motion information prediction mode. For example, the motion information prediction mode candidate list includes 5 motion information prediction modes, namely motion information prediction modes {0, 1, 2, 3, 4}. Assuming that the target motion information prediction mode is motion information prediction mode 3, that is, the index information of the target motion information prediction mode is 4, the encoder can encode the index information as 0001, so that the decoder needs to decode to 1, that is, the fourth value is 1, so the decoder knows that the index information of the target motion information prediction mode is 4.
[0171] Among them, a fixed-length coding method can be used to encode the index information of the target motion information prediction mode. For example, the motion information prediction mode candidate list includes 5 motion information prediction modes, namely motion information prediction modes {0, 1, 2, 3, 4}, which require a total of 3 bits to encode. For example, 000 can be used to represent the first motion information prediction mode, that is, motion information prediction mode 0, and 001 can be used to represent the second motion information prediction mode, that is, motion information prediction mode 1, and so on.
[0172] Embodiment 9: The construction of the motion information prediction mode candidate list includes at least one of the DC prediction mode and the angle prediction mode. The angle in the angle prediction mode is any angle, such as 22.5 degrees. The DC prediction mode includes the weighted motion information of at least two matching blocks, such as Fig. 9A As shown, although image blocks C1-image block C4 and image blocks D1-image block D4 are not encoded, they can be filled with motion information of encoded blocks in the time domain or spatial domain, or they can be filled by processing the motion information of the encoded blocks. Therefore, image blocks C1-image block C4 and image blocks D1-image block D4 can also be used as matching blocks. Specifically, the meaning of filling is to determine at least one available spatial motion information and / or available temporal motion information as the motion information of the uncoded block; or, to perform weighted calculation on at least two available spatial motion information and / or available temporal motion information of the uncoded block to obtain the motion information of the uncoded block. Of course, motion information containing a zero motion vector can still be generated for the uncoded block as the filling of the uncoded block.
[0173] In another example, for DC prediction mode and angle prediction mode, see Fig. 9B As shown, if the image block at the upper position and the image block at the left position are both available, the horizontal, vertical, horizontal upward, horizontal downward, and vertical right motion information prediction modes can be added to the motion information prediction mode candidate list in order, that is, Fig. 9B Alternatively, if only the image block at the upper position is available, motion information prediction mode 1, motion information prediction mode 2, and motion information prediction mode 4 may be added to the motion information prediction mode candidate list in order. Alternatively, if only the image block at the left position is available, motion information prediction mode 0, motion information prediction mode 2, and motion information prediction mode 3 may be added to the motion information prediction mode candidate list in order. Alternatively, if neither the image block at the upper position nor the image block at the left position is available, motion information prediction modes of any angle may not be added to the motion information prediction mode candidate list.
[0174] In the above embodiment, the motion information prediction mode selects the angle prediction mode. According to the selected angle, the motion information of the surrounding 4x4 blocks pointed to is used as the motion information of the 4x4 blocks inside the current image block. All 4x4 blocks inside the current image block are subjected to the same operation.
[0175] In one example, the motion information of the surrounding blocks may be processed or not. If the motion information of the surrounding blocks is not processed, the above-mentioned embodiments 4, 5, and 9 are adopted. If the motion information of the surrounding blocks is processed, the subsequent embodiment 10 may be adopted.
[0176] Embodiment 10: In the above embodiment, it is necessary to use the motion information of the matching block for correlation processing. Thus, when the matching block has motion information, how to use the motion information of the matching block, and when the matching block does not have motion information, how to determine whether the matching block has motion information. This embodiment also provides the following method:
[0177] In one example, if the matching block corresponding to the current image block generated according to the target motion information prediction mode is an intra-frame block, since this intra-frame block has no motion information, the motion information of the intra-frame block can be generated according to the motion information of the inter-frame blocks around the intra-frame block (such as adjacent inter-frame blocks, or non-adjacent inter-frame blocks); or, motion information containing a zero motion vector is generated for the intra-frame block; or, motion information is generated for the intra-frame block according to the available motion information in the time domain.
[0178] In another example, available motion information of the surrounding blocks can be obtained by performing at least one of the following processing on any surrounding block: (1) if the surrounding block is an inter-frame block, weighting the motion information of the inter-frame block and the motion information of at least one block around the inter-frame block to obtain the adjusted motion information of the inter-frame block; (2) if the surrounding block is an uncoded block, determining at least one spatial domain available motion information and / or temporal domain available motion information of the uncoded block as the motion information of the uncoded block; or, weighting at least two spatial domain available motion information and / or temporal domain available motion information of the uncoded block to obtain the motion information of the uncoded block; or, generating a zero motion vector for the uncoded block. (3) if the surrounding block is an intra-frame block, the motion information of the intra-frame block is determined according to the motion information of the inter-frame blocks (such as adjacent inter-frame blocks or non-adjacent inter-frame blocks) around the intra-frame block; or, a motion information including a zero motion vector is generated for the intra-frame block; or, a motion information is generated for the intra-frame block according to the available motion information in the time domain; (4) if the current image block is a boundary block, the surrounding blocks include at least one configuration block, and the motion information of the configuration block is generated according to the available motion information in the spatial domain; or, a motion information including a zero motion vector is generated for the configuration block; or, a motion information is generated for the intra-frame block according to the available motion information in the time domain.
[0179] Among them, for method (1), if the surrounding blocks are inter-frame blocks, the motion information of the inter-frame blocks can be filtered, and the filtered motion information is used as the motion information of the matching block. Specifically, the motion information of the inter-frame block and the motion information of at least one block around the inter-frame block can be weighted to obtain the adjusted motion information of the inter-frame block, and the adjusted motion information is used as the motion information of the matching block.
[0180] For method (2), if the surrounding blocks are uncoded blocks, the motion information of the uncoded blocks can be filled, such as filling the right column, which can be filled directly by the motion information in the time domain or spatial domain, or it can be filled after a certain transformation; or, the motion information of the uncoded blocks can be filled, such as filling the lower row, which can be filled directly by the motion information in the time domain or spatial domain, or it can be filled after a certain transformation.
[0181] Further, at least one spatially available motion information and / or temporally available motion information of the uncoded block can be determined as the motion information of the uncoded block; or, at least two spatially available motion information and / or temporally available motion information of the uncoded block can be weightedly calculated to obtain the motion information of the uncoded block.
[0182] For method (3), if the surrounding blocks are intra-frame blocks, the motion information of other inter-frame blocks can be used for filling, or zero motion vectors can be filled, or other motion information can be filled. Based on this, the motion information of the intra-frame block can be determined according to the motion information of the inter-frame blocks around the intra-frame block (such as adjacent inter-frame blocks, or non-adjacent inter-frame blocks); or, motion information including a zero motion vector can be generated for the intra-frame block.
[0183] For method (4), if the current image block is a boundary block, that is, the adjacent position of the current image block is not available, the motion information of other available blocks can be used for filling, or a zero motion vector can be filled, or other motion information can be filled. Based on this, the configuration block (that is, any preset available block) can be determined as a peripheral block of the current image block, and the motion information of the configuration block can be generated according to the available motion information in the spatial domain.
[0184] The following describes in detail how to process the motion information of the surrounding blocks in the above process in combination with several specific application scenarios.
[0185] Application scenario 1, the motion information filling process of the 4x4 block is performed from the lower left to the upper right, where the lower left length is the width of the current image block and the upper right length is the height of the current image block. For a peripheral block, such as a 4x4 block, if intra-frame coding is used, the motion information of the nearest 4x4 inter-frame block next to it can be used for filling. If the distances between the two adjacent inter-frame blocks and the filling block are equal, the upper block or the right block is selected.
[0186] See also Fig. 9CAs shown, for the intra-frame blocks A2, A3 and A4 in the left column, the inter-frame blocks closest to the intra-frame blocks are A1 and A5, and the motion information of A1 can be selected to fill the motion information of intra-frame blocks A2, A3 and A4. In addition, for the third intra-frame block from top to bottom in the left column, the inter-frame block closest to this intra-frame block is A5, and the motion information of A5 can be selected to fill the motion information of this intra-frame block. For the intra-frame blocks B2, B3 and B4 in the upper row, the inter-frame blocks closest to the intra-frame blocks are B1 and B5, and the motion information of A1 can be selected to fill the motion information of intra-frame blocks B2, B3 and B4. In addition, for the three intra-frame blocks in the upper row, the inter-frame block closest to it is 5, and the motion information of B5 can be selected to fill the motion information of this intra-frame block.
[0187] Application scenario 2: filtering of motion information, weighting the motion information of surrounding blocks.
[0188] See also Fig.9D As shown, for each motion information, such as the motion information of inter-frame block A4, it can be obtained by weighting the motion information of at least one surrounding inter-frame block and the motion information of A4. For example, it can be obtained by weighting the motion information of A4 and the motion information of inter-frame block A5, it can be obtained by weighting the motion information of inter-frame block A4 and the motion information of inter-frame block A3, it can be obtained by weighting the motion information of inter-frame block A4, the motion information of inter-frame block A5, and the motion information of inter-frame block A3. It can be obtained by weighting the motion information of inter-frame block A2, the motion information of inter-frame block A4, the motion information of inter-frame block A5, the motion information of inter-frame block A6, and the motion information of inter-frame block A3.
[0189] Application scenario 3, for surrounding uncoded blocks, see Fig.9E As shown, the gray image blocks (B6, B7, C1 to C4, E, D1 to D3, A7, A8) are uncoded blocks, and these uncoded blocks can be filled with the surrounding available motion information, including available motion information in the time domain (not shown) and the spatial domain (A1 to A6, and B1 to B5, and D), or they can be filled with weighted at least two available motion information, or they can be filled with motion information of zero motion vector, without limitation.
[0190] Application scenario 4, see Fig.9F As shown, A3 is an intra-frame block, and the motion information of the intra-frame block A3 can be determined using the available motion information of the image blocks around the intra-frame block A3; or, motion information including a zero motion vector can be generated for the intra-frame block A3, and there is no restriction on the determination of this motion information.
[0191] Application scenario 5, see Figure 9GAs shown, the current image block is a boundary block of the image, and B4, B5, B6 and B7 are configuration blocks of the current image block outside the boundary. B4, B5, B6 and B7 can be filled with available motion information in the time domain or the spatial domain, or, at least two available motion information in the spatial domain and / or available motion information in the time domain are weightedly calculated, and B4, B5, B6 and B7 are filled with the available motion information after weighted calculation, or, motion information of zero motion vector is filled.
[0192] Embodiment 11: The embodiment of the present application proposes a decoding method, which can be applied to a decoding end, including:
[0193] Step d1, creating a motion information prediction mode candidate list for the current image block; wherein the motion information prediction mode candidate list may include at least one motion information prediction mode.
[0194] Step d2: Select a motion information prediction mode from the motion information prediction mode candidate list, and determine the selected motion information prediction mode as the target motion information prediction mode of the current image block.
[0195] Step d3: determine the target motion information of the current image block according to the target motion information prediction mode.
[0196] The process of step d1 to step d3 can be found in the above embodiment and will not be described in detail here.
[0197] Step d4: decode the received encoded bit stream according to the target motion information.
[0198] Specifically, after obtaining the target motion information, the decoding end can decode the encoded bit stream according to the target motion information. The specific decoding method can refer to the traditional method, which will not be repeated here.
[0199] Embodiment 12: The embodiment of the present application proposes an encoding method, which can be applied to an encoding end, including:
[0200] Step e1: Create a motion information prediction mode candidate list for the current image block; wherein the motion information prediction mode candidate list may include at least one motion information prediction mode.
[0201] Step e2: Select a motion information prediction mode from the motion information prediction mode candidate list, and determine the selected motion information prediction mode as the target motion information prediction mode of the current image block.
[0202] The process from step e1 to step e3 may refer to the above embodiment and will not be described in detail here.
[0203] Step e3: Encode the bit stream according to the target motion information prediction mode to obtain a coded bit stream.
[0204] Specifically, after obtaining the target motion information prediction mode, the encoding end can encode the bit stream according to the target motion information prediction mode. The specific encoding method refers to the traditional method and will not be described here.
[0205] Example 13: See Fig.10 As shown, it is a schematic diagram of the processing flow of the encoding end. The encoding end can construct a motion information prediction mode candidate list for the current image block, and select the target motion information prediction mode from the motion information prediction mode candidate list. If the motion information of this scheme is used, the index information of the target motion information prediction mode in the motion information prediction mode candidate list is carried into the encoded bit stream. If the motion information of this scheme is not used, other motion information is carried into the encoded bit stream.
[0206] See also Fig.11 As shown, it is a schematic diagram of the processing flow of the decoding end, and the decoding end can parse the indication information in the coded bit stream. If the indication information indicates that the motion information of this scheme is adopted, a motion information prediction mode candidate list of the current image block is constructed, and a target motion information prediction mode is selected from the motion information prediction mode candidate list according to the index information, and the target motion information prediction mode is used to derive the target motion information of the current image block. If the indication information indicates that the motion information of this scheme is not adopted, other motion information is adopted.
[0207] In one example, a motion information prediction mode candidate list can be constructed, and the candidate list includes at least one of a DC prediction mode and an angle prediction mode. Among them, the DC prediction mode is a weighted motion information of the surrounding blocks of the current image block, and the surrounding blocks include blocks adjacent to the current image block, and also include non-adjacent blocks, such as the lower left column and the upper right column. The angle prediction mode refers to a principle similar to the intra-frame prediction mode, and the motion information of the sub-blocks inside the current image block is predicted at a certain angle. There are five angles such as horizontal, vertical, horizontal upward, horizontal downward, and vertical right, but this solution is not limited to these five, and all angles are included in this solution.
[0208] Process the reference motion information of the blocks around the current image block, and the processing includes at least one of the following: filtering of the reference motion information. Fill the reference motion information, and fill the right column. It can be filled directly with the motion information in the time domain or the spatial domain, or it can be filled after a certain transformation. Fill the reference motion information, and fill the lower row. It can be filled directly with the motion information in the time domain or the spatial domain, or it can be filled after a certain transformation. If the reference motion information is an intra-frame coded block, it is filled with the motion information of other inter-frame coded blocks, or filled with zero motion vectors. Other motion information (except motion vectors) can be freely selected. If the adjacent position of the reference motion information is not available, it is filled with the motion information of other available blocks, or filled with zero motion vectors. Other motion information (except motion vectors) can be freely selected.
[0209] In one example, when the DC prediction mode is selected to assign motion information to each area of the current image block, a weighted calculation of at least two different surrounding motion information is included as the motion information of the current image block.
[0210] In one example, when the angle prediction mode is selected to assign motion information to each area of the current image block, the angle may be a horizontal angle mode, such as the areas in the first row all use the motion information of the A1 block.
[0211] In one example, when the angle prediction mode is selected to assign motion information to each area of the current image block, the angle can be a horizontal angle mode. When the horizontal prediction mode is used, the areas in the first row all use the motion information of the A1 block, and a certain scale operation can be performed on the motion information of the A1 block, and then assigned to each area in the first row. The processing of the remaining rows is similar, and the remaining angle prediction modes are also similar.
[0212] In an example, when the angle prediction mode is selected to assign motion information to each area of the current image block, the angle can be a horizontal angle mode. When the horizontal prediction mode is used, if the corresponding A1 block has multiple different motion information, any one of the motion information in A1, or a weighted processing of at least two surrounding motion information is selected, and then assigned to each area of the first row, and the remaining rows are similar.
[0213] In one example, when the angle prediction mode is selected to assign motion information to each area of the current image block, if the direction corresponding to the angle is not exactly a sub-block, at least two motion information on the left and right sides of the angle can be weighted and then assigned to the area of the current image block.
[0214] In an example, if the motion information prediction mode candidate list in the scheme is the same as the prediction mode list of other schemes, it is only necessary to use a unary truncation code to encode the index position information of the motion information prediction mode candidate list of this technical scheme. For the specific encoding method, please refer to the above embodiment.
[0215] In an example, a flag may be first encoded to determine whether to use the motion information prediction mode. If the motion information prediction mode is used, the encoder fixes a motion information prediction mode, and the encoder does not need any bit overhead.
[0216] In one example, a flag may be first decoded to determine whether the motion information prediction mode is used. If the motion information prediction mode is used, a unary truncation code is used to decode the index information of the specific motion information prediction mode in the motion information prediction mode candidate list. The decoding end only needs to decode until 1.
[0217] In one example, a flag may be first decoded to determine whether to use the motion information prediction mode. If the motion information prediction mode is used, a fixed-length method is used to decode the index information of the specific prediction mode in the candidate list. In one example, if the list of the present technical solution is the same as the list of other technical solutions, the existing solution is used to decode the index information of the specific prediction mode in the candidate list.
[0218] Embodiment 14: Based on the same application concept as the above method, the present embodiment also proposes a motion information determination device, which is applied to a decoding end, such as Fig.12 As shown, it is a structural diagram of the device, including:
[0219] A creation module 1201 is used to create a motion information prediction mode candidate list for a current image block; the motion information prediction mode candidate list includes at least one motion information prediction mode; a selection module 1202 is used to select a motion information prediction mode from the motion information prediction mode candidate list, and determine the selected motion information prediction mode as the target motion information prediction mode of the current image block; a determination module 1203 is used to determine the target motion information of the current image block according to the target motion information prediction mode.
[0220] Based on the same application concept as the above method, the embodiment of the present application also proposes a motion information determination device, which is applied to the encoding end, such as Fig.13 As shown, it is a structural diagram of the device, including:
[0221] A creation module 1301 is used to create a motion information prediction mode candidate list for a current image block; wherein the motion information prediction mode candidate list includes at least one motion information prediction mode; a selection module 1302 is used to select a motion information prediction mode from the motion information prediction mode candidate list, and determine the selected motion information prediction mode as the target motion information prediction mode of the current image block.
[0222] The decoding end device provided in the embodiment of the present application, from the hardware level, its hardware architecture diagram can be specifically referred to Fig.14 As shown. It includes: a processor 141 and a machine-readable storage medium 142, wherein: the machine-readable storage medium 142 stores machine-executable instructions that can be executed by the processor 141; the processor 141 is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.
[0223] The encoding end device provided in the embodiment of the present application, from the hardware level, its hardware architecture diagram can be specifically referred to Fig.15 As shown. It includes: a processor 151 and a machine-readable storage medium 152, wherein: the machine-readable storage medium 152 stores machine-executable instructions that can be executed by the processor 151; the processor 151 is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.
[0224] Based on the same application concept as the above method, an embodiment of the present application also provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the method disclosed in the above example of the present application can be implemented.
[0225] The above-mentioned machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device, which may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0226] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0227] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0228] 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 a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0229] The present application is described with reference to the 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 the 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 processes in the flowchart and / or block diagram. 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.
[0230] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0231] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0232] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for determining motion information, characterized in that: Applied to the decoding end, including: Creating a motion information prediction mode candidate list for a current image block, wherein the motion information prediction mode candidate list includes at least one motion information angle prediction mode; Decoding first indication information from a coded bit stream, the first indication information being used to indicate index information of a target motion information prediction mode; selecting a motion information prediction mode corresponding to the index information from the motion information prediction mode candidate list based on the first indication information, and determining the selected motion information prediction mode as a target motion information prediction mode of the current image block; If the target motion information prediction mode is a target motion information angle prediction mode, a matching block is selected for a specified area within the current image block from peripheral blocks of the current image block according to a preconfigured angle indicated by the target motion information angle prediction mode, and target motion information of the specified area within the current image block is determined according to available motion information of the matching block.
2. The method according to claim 1, characterized in that The decoding of the first indication information from the encoded bit stream includes: The first indication information is decoded from the encoded bit stream using a unary truncation code.
3. The method according to claim 1, characterized in that The matching block is a block or a plurality of blocks at a specified position determined from the surrounding blocks according to the preconfigured angle; The peripheral blocks include blocks adjacent to the current image block.
4. The method according to claim 1, characterized in that: After selecting a matching block for a designated area inside the current image block from surrounding blocks of the current image block, the method further includes: If the matching block is an intra block, the motion information of the intra block is generated according to the motion information of the inter blocks around the intra block; or the motion information including a zero motion vector is generated for the intra block.
5. The method according to claim 1, characterized in that Before selecting a matching block for a designated area inside the current image block from surrounding blocks of the current image block, the method further includes: For any surrounding block of the current image block, if the surrounding block is an uncoded block, at least one available spatial motion information of the uncoded block is determined as the motion information of the uncoded block; or, motion information including a zero motion vector is generated for the uncoded block; For any surrounding block of the current image block, if the surrounding block is an intra-frame block, generate motion information of the intra-frame block according to motion information of inter-frame blocks surrounding the intra-frame block; or generate motion information including a zero motion vector for the intra-frame block; For any surrounding block of the current image block, if the current image block is a boundary block and the surrounding block includes at least one configuration block, motion information of the configuration block is generated according to the spatially available motion information; or, motion information including a zero motion vector is generated for the configuration block.
6. The method according to any one of claims 1 to 5, characterized in that: The determining the target motion information of the designated area inside the current image block according to the available motion information of the matching block includes: If the number of the matching blocks is one, the available motion information of the one matching block is determined as the target motion information of the specified area inside the current image block; or, if the number of the matching blocks is at least two, one matching block is selected from the at least two matching blocks, and the available motion information of the selected matching block is determined as the target motion information of the specified area inside the current image block.
7. The method according to any one of claims 1 to 5, characterized in that: The motion information angle prediction mode in the motion information prediction mode candidate list is used to indicate the following preconfigured angles: 0 degree, 90 degrees, 45 degrees, -45 degrees, and 135 degrees.
8. A method for determining motion information, characterized in that: Applied to the encoding end, including: Creating a motion information prediction mode candidate list for a current image block, wherein the motion information prediction mode candidate list includes at least one motion information angle prediction mode; Selecting a motion information prediction mode from the motion information prediction mode candidate list as a target motion information prediction mode of the current image block; If the target motion information prediction mode is the target motion information angle prediction mode, selecting a matching block for a designated area within the current image block from surrounding blocks of the current image block according to a preconfigured angle indicated by the target motion information angle prediction mode, and determining target motion information of the designated area within the current image block according to available motion information of the matching block; First indication information is encoded in a coded bit stream, where the first indication information is used to indicate index information of the target motion information prediction mode in the motion information prediction mode candidate list.
9. A motion information determination device, characterized in that: Applied to the decoding end, including: A creation module, configured to create a motion information prediction mode candidate list for a current image block, wherein the motion information prediction mode candidate list includes at least one motion information angle prediction mode; a selection module, configured to decode first indication information from a coded bit stream, the first indication information being used to indicate index information of a target motion information prediction mode; based on the first indication information, select a motion information prediction mode corresponding to the index information from the motion information prediction mode candidate list, and determine the selected motion information prediction mode as a target motion information prediction mode of the current image block; a determination module, configured to select, if the target motion information prediction mode is a target motion information angle prediction mode, a matching block for a specified area within the current image block from surrounding blocks of the current image block according to a preconfigured angle indicated by the target motion information angle prediction mode, and determine target motion information of the specified area within the current image block according to available motion information of the matching block.
10. A motion information determination device, characterized in that: Applied to the encoding end, including: A creation module, configured to create a motion information prediction mode candidate list for a current image block, wherein the motion information prediction mode candidate list includes at least one motion information angle prediction mode; A selection module, configured to select a motion information prediction mode from the motion information prediction mode candidate list as a target motion information prediction mode of the current image block; a determination module, configured to select, if the target motion information prediction mode is a target motion information angle prediction mode, a matching block for a designated area within the current image block from surrounding blocks of the current image block according to a preconfigured angle indicated by the target motion information angle prediction mode, and determine target motion information of the designated area within the current image block according to available motion information of the matching block; The encoding module is used to encode first indication information in an encoded bit stream, where the first indication information is used to indicate index information of the target motion information prediction mode in the motion information prediction mode candidate list.
11. A decoding end device, characterized in that: include: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; The processor is used to execute machine executable instructions to implement the method steps described in any one of claims 1-7.
12. A coding end device, characterized in that: include: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; The processor is configured to execute machine executable instructions to implement the method steps of claim 8.
