Combined prediction value determination in video encoding and decoding
By combining intra-frame prediction values and inter-frame prediction values and segmenting video blocks in non-vertical and horizontal directions, combined with the prediction conditions of adjacent blocks, the existing technology solves the problems of large segmentation limitations and failure to fully utilize prediction values. , improving video encoding efficiency.
Patent Information
- Application Number
- CN202210040502.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-01-14
AI Technical Summary
In the existing technology, video block segmentation is limited to the vertical and horizontal directions, cannot fully utilize the gains of intra-frame prediction values and inter-frame prediction values, and fails to consider the prediction conditions of adjacent blocks during segmentation, resulting in inability to optimally cope with Internal changes to video content.
By combining intra-frame prediction values and inter-frame prediction values for each coding unit (CU), using non-vertical and horizontal segmentation methods, and determining the prediction method of the segmented area based on the prediction methods of adjacent CUs, intra-frame Inter-frame hybrid prediction fully considers the characteristics of video content.
While reducing the amount of calculation, it makes full use of the gains of intra-frame prediction and inter-frame prediction to improve video coding efficiency, especially the compression performance when the video content is complex.
Smart Images

Figure CN114302138B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image and video processing, and more specifically, to a method, device and medium based on combined prediction value determination. Background Art
[0002] Digital video capabilities can be incorporated into a variety of devices including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radio telephones, so-called "smart phones", video teleconferencing devices, video streaming devices, and the like.
[0003] Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), High Efficiency Video Coding (HEVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), Versatile Video Coding (VVC) (H.266), and extensions of such standards. By implementing such video coding techniques, video devices can more efficiently send, receive, encode, decode and / or store digital video information.
[0004] In April 2010, the two major international video coding standard organizations VCEG and MPEG established the Joint collaborative Team on Video Coding (JCT-VC) to jointly develop efficient video coding standards.
[0005] In 2013, JCT-VC completed the development of the HEVC (High efficiency video coding) standard (also known as H.265) and subsequently released several versions.
[0006] HEVC proposes a new syntax unit: the coding unit (CU) is the basic unit for prediction, transformation, quantization and entropy coding, the prediction unit (PU) is the basic unit for intra-frame and inter-frame prediction, and the transform unit (TU) is the basic unit for transformation and quantization. In addition, each CU defines an area that shares the same prediction mode (intra-frame or inter-frame).
[0007] like Figure 1As shown, in HEVC, intra prediction mode and inter prediction mode can be switched. In both intra prediction mode and inter prediction mode, HEVC adopts the coding structure of coding tree unit (CTU), which is the basic processing unit of HEVC encoding and decoding. CTU consists of 1 luma CTB, 2 chroma CTBs and corresponding syntax elements. Figure 2 The CTU structure after encoding in an LCU (largest coding unit) is shown. In HEVC, an LCU can contain only one coding unit (CU) or it can be divided into CUs of different sizes using the CTU quadtree structure.
[0008] There are four sizes of CU in HEVC, namely: 64x64, 32x32, 16x16 and 8x8. The smaller the CU block, the deeper it is in the CTU tree. When the CU is 64x64, 32x32 and 16x16, it is called 2Nx2N mode (indicating that it can be divided into smaller CUs), and when the CU is 8x8, it is called NxN mode (indicating that further division is not possible). For intra prediction, the CU is divided into two PartModes (2Nx2N and NxN), depending on whether it can be divided into smaller CUs. CUs of size 64x64, 32x32 and 16x16 belong to 2N×2N, and CUs of size 8×8 belong to N×N.
[0009] In HEVC, PU is the basic unit for intra-frame and inter-frame prediction. The division of PU is based on CU, with five regular sizes of 64x64, 32x32, 16x16, 8x8 and 4x4. More specifically, the PU size is based on PartMode: for 2N×2N PartMode PU size is the same as CU, and for N×N PartMode CU can be divided into four 4×4 sub-PUs. For the 2N*2N CU mode, the optional modes of intra-frame prediction PU include 2N*2N and N*N, and there are 8 optional modes of inter-frame prediction PU, including 4 symmetric modes (2N*2N, N*2N, 2N*N, N*N) and 4 asymmetric modes (2N*nU, 2N*nD, nL*2N, nR*2N), among which 2N*nU and 2N*nD are divided in the ratio of 1:3 and 3:1 respectively, and nL*2N and nR*2N are divided in the ratio of 1:3 and 3:1 respectively.
[0010] In HEVC, the Lagrangian rate-distortion optimization (RDO) of H.264 / AVC is still used for mode selection, and the RDO is calculated for each intra-frame mode:
[0011] J=D+λR (1)
[0012] Where J is the Lagrangian cost (i.e., RD-cost), D represents the distortion of the current intra mode, R represents the number of bits required to encode all information in the current prediction mode, and λ is the Lagrangian factor. D is usually implemented using the sum of absolute Hadamard transform differences (SATD).
[0013] To process a frame of video, you need to first divide it into multiple LCUs (64x64), and then encode each LCU in turn. Each LCU is recursively divided in turn, and the RD-cost of the current depth is calculated to determine whether to continue dividing. An LCU can be divided into a minimum unit of 8x8 size, such as Figure 2 The encoder determines whether to continue the division by comparing the RD-cost values of the depths. If the sum of the coding costs of the four sub-CUs in the current depth is greater than the current CU, the division will not continue; otherwise, the division will continue until the division is completed.
[0014] Those skilled in the art can easily understand that since CTU is a tree-like coding structure for dividing LCU into CUs, and the CU division method in CTU starts with LCU, the two terms are often used interchangeably in the art.
[0015] In intra prediction, a total of 35 prediction modes are used for each PU. Using coarse mode decision (RMD), we can obtain three candidate modes for 64x64, 32x32 and 16x16 blocks and eight candidate modes for 8x8 and 4x4 blocks. The best candidate list for each PU size is obtained by merging the most probable mode (MPM) from neighboring blocks. Then, the best intra prediction mode for the current PU is selected by RDO. When the intra prediction of all PUs included in the current CU is completed, the intra prediction of the current CU is completed. The suboptimal CU intra prediction with a smaller RD-cost is selected by comparing the RD-cost of the current CU with the total RD-cost of the four sub-CUs of the current CU and its 4 sub-CUs. When all CU partitions are completed, the current CTU intra prediction is completed. For HEVC, when encoding an LCU, intra prediction of 85 CUs (one 64×64CU, four 32×32CUs, sixteen 16×16CUs and sixty-four 8×8CUs) should be performed. When a CU is encoded, intra prediction of one PU or four sub-PUs should be performed. A large number of CUs and PUs leads to high complexity of intra prediction.
[0016] In order to develop new technologies beyond HEVC, a new organization, the Joint Video Exploration Term, was established in 2015 and renamed the Joint Video Experts Term (JVET) in 2018. Based on HEVC, the research on Versatile Video Coding (VVC) (H.266) was proposed by the JVET organization at the San Diego Conference in the United States on April 10, 2018. It is a new generation of video coding technology improved on the basis of H.265 / HEVC. Its main goal is to improve the existing HEVC and provide higher compression performance. At the same time, it will be optimized for emerging applications (360° panoramic video and high dynamic range (HDR) video). The first version of VVC was completed in August 2020 and officially released as the H.266 standard on the ITU-T website.
[0017] Relevant documents and test platforms for HEVC and VVC can be obtained from https: / / jvet.hhi.fraunhofer.de / , and relevant proposals for VVC can be obtained from http: / / phenix.it-sudparis.eu / jvet / .
[0018] VVC still uses the hybrid coding framework that H.264 has adopted. The general block diagram of its VTM8 encoder is as follows: Figure 1 As shown. Inter-frame and intra-frame prediction coding: eliminate the correlation between the time domain and the spatial domain. Transform coding: transform the residual to eliminate spatial correlation. Entropy coding: eliminate statistical redundancy. VVC will focus on researching new coding tools or technologies within the hybrid coding framework to improve video compression efficiency.
[0019] Although both VVC and HEVC use a tree structure to divide CTUs, VVC uses a different tree structure CTU division method from HEVC. In addition, compared with HEVC, the maximum size of CTU in VVC reaches 128x128.
[0020] As mentioned above, in HEVC, a quadtree structure is used to divide CTU into CUs (i.e., coding trees). Decisions about intra-coding and inter-coding are made at the leaf node CU. In other words, a leaf node CU defines an area that shares the same prediction mode (e.g., intra-frame prediction or inter-frame prediction). Then, depending on the PU partition type, each leaf CU can be further divided into 1, 2, or 4 prediction units PU. Within each PU, the same prediction process is used, and relevant information is sent to the decoder segment on a PU basis. After the residual block is obtained based on the PU-based prediction process, the leaf CU can be divided into TUs according to another similar quadtree structure similar to the coding tree of the CU.
[0021] In VVC, a quadtree partitioning structure with nested multi-type trees is adopted, in which the nested multi-type trees use binary trees and ternary trees. An example of such a nested multi-type tree of VVC is the quadtree-binary tree (QTBT) structure. The QTBT structure includes two levels: a first level divided according to quadtree partitioning, and a second level divided according to binary tree partitioning. The root node of the QTBT structure corresponds to CTU. The leaf nodes of the binary tree correspond to coding units (CU). The different forms of CU, PU, and TU are deleted in VVC. A CTU is first divided by a quadtree, and then further divided by a multi-type tree. Figure 3 As shown, VVC specifies four multi-type tree partitioning modes: horizontal binary tree partitioning, vertical binary tree partitioning, horizontal ternary tree partitioning, and vertical ternary tree partitioning. The leaf nodes of the multi-type tree are called coding units (CUs), and unless the CU is too large for the maximum transform length, the CU partitioning will be used for prediction and transform processing without further partitioning. This means that in most cases, CUs, PUs, and TUs have the same block size in the quadtree partitioning structure with nested multi-type trees. The exception is that the maximum supported transform length is less than the width or height of the color component of the CU. Figure 4 A specific embodiment of CTU to CU partitioning of a VVC with a quadtree partitioning structure having nested multi-type trees is shown, wherein a bold box represents quadtree partitioning and the remaining edges represent multi-type tree partitioning.
[0022] After CU segmentation, the video data of the CU representing prediction and / or residual information and other information is encoded. The prediction information indicates how the CU will be predicted in order to form a prediction block for the CU. The residual information generally represents the sample-by-sample difference between the samples of the CU before encoding and the samples of the prediction block.
[0023] In order to predict a CU, a prediction block of the CU may generally be formed by inter-prediction or intra-prediction. Inter-prediction generally refers to predicting a CU based on data of a previously decoded picture, while intra-prediction generally refers to predicting a CU based on previously decoded data of the same picture. In order to perform inter-prediction, one or more motion vectors may be used to generate a prediction block. Motion search may generally be performed, for example, according to the difference between the CU and a reference block to identify a reference block that closely matches the CU. The difference metric may be calculated using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the current CU may be predicted using unidirectional prediction or bidirectional prediction.
[0024] VVC also provides an affine motion compensation mode, which can be considered as an inter-frame prediction mode. In the affine motion compensation mode, two or more motion vectors representing non-translational motion (such as enlargement or reduction, rotation, perspective motion, or other irregular motion types) can be determined.
[0025] In order to perform intra prediction, an intra prediction mode for generating a prediction block may be selected. VVC provides 67 intra prediction modes, including various directional modes, as well as planar mode and DC mode. Typically, an intra prediction mode is selected that describes neighboring samples to a current block (e.g., a block of a CU), from which samples of the current block are predicted. Assuming that CTUs and CUs are decoded in raster scan order (a decoding order from left to right, top to bottom or a decoding order from right to left, top to bottom), these samples may typically be above, above, and to the left of, or to the left of the current block in the same picture as the current block.
[0026] Data representing the prediction mode of the current block is encoded. For example, for an inter-frame prediction mode, the video encoder 200 may encode data indicating which inter-frame prediction mode of various available inter-frame prediction modes is used and motion information for the corresponding mode. For unidirectional or bidirectional inter-frame prediction, for example, motion vectors may be encoded using advanced motion vector prediction (AMVP) or merge mode. A similar mode may be used to encode motion vectors for affine motion compensation mode.
[0027] After a prediction, such as intra prediction or inter prediction of a block, residual data for the block may be calculated. The residual data, such as a residual block, represents the sample-by-sample difference between the block and a prediction block for the block formed using a corresponding prediction mode. One or more transforms may be applied to the residual block to produce transformed data in a transform domain rather than a sample domain. For example, a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform may be applied to the residual video data. In addition, the video encoder 200 may apply a secondary transform after a primary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. Transform coefficients are generated after applying one or more transforms.
[0028] As described above, after any transform used to produce transform coefficients, quantization of the transform coefficients may be performed according to a quantization factor (QP). Quantization generally refers to the process of quantizing the transform coefficients to possibly reduce the amount of data used to represent the coefficients, thereby providing further compression. By performing the quantization process, the bit depth associated with some or all coefficients may be reduced. For example, an n-bit value may be rounded to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, a bitwise right shift of the value to be quantized may be performed. The quantization factor (QP) is typically included in the header information using a syntax element.
[0029] After quantization, the transform coefficients can be scanned to produce a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can be designed to place coefficients of higher energy (and therefore lower frequency) at the front of the vector and transform coefficients of lower energy (and therefore higher frequency) at the back of the vector. In some examples, the quantized transform coefficients can be scanned using a predefined scan order to produce a serialized vector, and then the quantized transform coefficients of the vector are entropy encoded. In other examples, adaptive scanning can be performed. After scanning the quantized transform coefficients to form a one-dimensional vector, the one-dimensional vector can be entropy encoded, for example, according to context adaptive binary arithmetic coding (CABAC). Values for syntax elements can also be entropy encoded, and the syntax elements describe metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.
[0030] During the encoding process, syntax data such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, or other syntax data such as sequence parameter set (SPS), picture parameter set (PPS), or video parameter set (VPS) may be generated, for example, in a picture header, a block header, a slice header. A video decoder may similarly decode such syntax data to determine how to decode the corresponding video data. All of this information may be referred to as "header information".
[0031] In this way, a bitstream including encoded video data (eg, syntax elements describing the partitioning of pictures into blocks (eg, CUs) and prediction and / or residual information for the blocks) may be generated.
[0032] In the prior art including HEVC and VVC, although the case of obtaining a combined prediction value based on multiple reference frames is considered, a certain combination of the intra-frame prediction value and the inter-frame prediction value of the coding unit (CU) is not considered, thereby failing to fully utilize both the intra-frame prediction value and the inter-frame prediction value.
[0033] In addition, in the prior art, video data blocks are usually segmented in CU or PU mode, and this segmentation is limited to segmentation in the vertical and horizontal directions, so it has great limitations and cannot optimally cope with internal changes in the video content within the block.
[0034] In addition, in the prior art, some non-vertical and non-horizontal segmentation methods are proposed, but these segmentations are all performed in the intra-frame prediction stage or the inter-frame prediction stage, that is, the segmented blocks are either intra-frame predicted or inter-frame predicted, thereby limiting the application scope of the non-vertical and non-horizontal segmentation. Moreover, the non-vertical and non-horizontal segmentation methods in the prior art are usually only proposed as a novel segmentation method, and the prediction of the neighboring blocks of the current video block (CU or PU) is not considered during the segmentation (for example, whether the neighboring blocks are intra-frame predicted or inter-frame predicted).
[0035] Therefore, there is still a great need for improvement in the video block segmentation in the prior art. Summary of the invention
[0036] In order to solve the above technical problems, the present invention proposes to combine the intra-frame prediction value and the inter-frame prediction value of each CU to make full use of the gains of both the intra-frame prediction and the inter-frame prediction of the CU. When considering the intra-frame prediction value, the present invention considers a reduced number of intra-frame prediction modes among all intra-frame prediction modes of the entire CU, for example, using 6 representative intra-frame prediction modes, and determining the best intra-frame prediction mode therefrom. In this way, the gain of the intra-frame prediction can be fully utilized while reducing the amount of calculation.
[0037] When considering the inter-frame prediction value, the present invention does not perform inter-frame prediction based on CU as in the prior art, but further divides the CU in non-vertical and horizontal directions, and further determines the prediction mode (intra-frame prediction, inter-frame prediction) of the two divided areas based on the prediction mode of the adjacent CU (that is, whether the adjacent CU is intra-frame prediction or inter-frame prediction). In order to avoid conceptual ambiguity, the present invention refers to this inter-frame prediction as "first combined prediction", and the "first combined prediction" can be a combination prediction of intra-frame prediction, inter-frame prediction, or intra-frame and inter-frame mixed prediction of the two divided areas. In this way, the present invention fully considers the prediction situation of the adjacent blocks to determine the segmentation and prediction mode of the current CU, so that the video content in the current CU can be fully considered, which is particularly beneficial when specific video content (for example, the same object, such as a football, a window, etc.) is divided into two CTUs or CUs.
[0038] Therefore, in one aspect, the present invention proposes a method for video decoding, comprising:
[0039] Obtain information about a current coding tree unit (CTU) of a current frame from syntax elements of a video stream;
[0040] Obtain information about coding unit (CU) partitioning of the current CTU from a syntax element of a video stream; and
[0041] For each CU:
[0042] Obtaining an optimal intra prediction mode in a syntax element at a CTU level or a syntax element at a CU level, wherein the optimal intra prediction mode includes one of the following six intra prediction modes: a planar mode, a DC mode, an upper block angle mode, a left block angle mode, a vertical mode, and a horizontal mode;
[0043] Determining an intra-frame prediction value corresponding to the optimal intra-frame prediction mode;
[0044] Obtaining segmentation information for the CU in a syntax element at the CTU level or a syntax element at the CU level, the segmentation information including an angle parameter and a prediction mode (intra-frame prediction, inter-frame prediction), wherein the segmentation information segments the CU to obtain two segmentation regions, wherein one of the two segmentation regions adopts intra-frame prediction, and the other adopts inter-frame prediction;
[0045] For the two segmented regions, determining a first combined prediction value based on the prediction method;
[0046] Determine a second combined prediction value based on the intra prediction value and the first combined prediction value;
[0047] The second combined prediction value is used as the prediction value of the CU.
[0048] In a further aspect, when both the left CU and the upper CU adopt inter-frame prediction, the angle parameter is a first acute angle parameter, and the left area adopts inter-frame prediction and the right area adopts intra-frame prediction; when both the left CU and the upper CU adopt intra-frame prediction, the angle parameter is a second acute angle parameter, and the left area adopts intra-frame prediction and the right area adopts inter-frame prediction; when the left CU adopts intra-frame prediction and the upper CU adopts inter-frame prediction, the angle parameter is a third obtuse angle parameter, and the left area adopts intra-frame prediction and the right area adopts inter-frame prediction; and when the left CU adopts inter-frame prediction and the upper CU adopts intra-frame prediction, the angle parameter is a fourth obtuse angle parameter, and the left area adopts inter-frame prediction and the right area adopts intra-frame prediction.
[0049] In a further aspect, determining a second combined prediction value based on the intra prediction value and the first combined prediction value further includes determining the second combined prediction value by weighted averaging the intra prediction value and the first combined prediction value.
[0050] In a further aspect, the segmentation information further includes a displacement value corresponding to the angle parameter, the displacement value representing a vertical displacement relative to the corresponding angle.
[0051] On the other hand, the present invention also proposes a method for video encoding and decoding, comprising:
[0052] Get the current coding tree unit (CTU) of the current frame;
[0053] Splitting the current CTU into coding units (CUs); and
[0054] For each CU:
[0055] Determine the best intra prediction mode corresponding to the following six intra prediction modes: planar mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode;
[0056] Determining an intra-frame prediction value corresponding to the optimal intra-frame prediction mode;
[0057] According to the prediction mode (intra-frame prediction, inter-frame prediction) of the left CU and the upper CU, the CU is divided into two divided areas using a dividing line corresponding to the angle parameter, and according to the prediction mode (intra-frame prediction, inter-frame prediction) of the left CU and the upper CU, one of the two divided areas adopts intra-frame prediction and the other adopts inter-frame prediction;
[0058] For the two segmented regions, determining a first combined prediction value;
[0059] Determine a second combined prediction value based on the intra prediction value and the first combined prediction value; and
[0060] The second combined prediction value is used as the prediction value of the CU to predict the CU.
[0061] In a further aspect, the segmentation line further corresponds to a displacement value corresponding to the angle parameter, the displacement value representing a vertical displacement relative to the corresponding angle.
[0062] In a further aspect, when both the left CU and the upper CU adopt inter-frame prediction, the CU is split using the first acute angle parameter, and the left area adopts inter-frame prediction and the right area adopts intra-frame prediction; when both the left CU and the upper CU adopt intra-frame prediction, the CU is split using the second acute angle parameter, and the left area adopts intra-frame prediction and the right area adopts inter-frame prediction; when the left CU adopts intra-frame prediction and the upper CU adopts inter-frame prediction, the CU is split using the third obtuse angle parameter, and the left area adopts intra-frame prediction and the right area adopts inter-frame prediction; and when the left CU adopts inter-frame prediction and the upper CU adopts intra-frame prediction, the CU is split using the fourth obtuse angle parameter, and the left area adopts inter-frame prediction and the right area adopts intra-frame prediction.
[0063] In a further aspect, determining a second combined prediction value based on the intra prediction value and the first combined prediction value further includes determining the second combined prediction value by weighted averaging the intra prediction value and the first combined prediction value.
[0064] In a further aspect, determining the optimal intra-frame prediction mode corresponding to the following six intra-frame prediction modes: planar mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode further includes: determining the optimal intra-frame prediction cost values for the six intra-frame prediction modes; and determining the intra-frame prediction mode corresponding to the optimal intra-frame prediction cost value as the optimal intra-frame prediction mode.
[0065] On the other hand, the present invention also proposes a computing device capable of performing video decoding, comprising:
[0066] A memory storing executable codes for video encoding and decoding;
[0067] One or more processors or video codecs, which are used to execute executable codes for video coding and decoding stored in the memory to perform the method according to claim 1.
[0068] On the other hand, the present invention further proposes a computer-readable storage medium storing codes for executing video encoding and decoding. When the codes are executed, the video encoding or video decoding method as described above can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 An embodiment of a general block diagram of a generic encoder for HEVC / VVC is shown.
[0070] Figure 2 A schematic diagram of a coding tree (CTU) in HEVC is shown.
[0071] Figure 3 Multiple types of tree partitioning modes for VVC are shown.
[0072] Figure 4 A specific embodiment of the partitioning of CTU into CU of VVC with a quadtree partitioning structure having nested multiple types of trees is shown.
[0073] Figure 5 (a)-5(d) show a non-limiting partitioning method of non-vertical and horizontal partitioning according to an embodiment of the present invention.
[0074] Figure 6 A video encoding method according to an embodiment of the present invention is shown.
[0075] Figure 7 A schematic diagram of a device for implementing a coding and decoding method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0076] Various schemes are now described with reference to the accompanying drawings. In the following description, for the purpose of explanation, a number of specific details are set forth in order to provide a thorough understanding of one or more schemes. However, it is apparent that these schemes can also be implemented without these specific details.
[0077] As used in this application, the terms "component", "module", "system", etc. are intended to refer to computer-related entities, such as but not limited to hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be but not limited to: a process running on a processor, a processor, an object, an executable, an execution thread, a program, and / or a computer. For example, an application running on a computing device and the computing device can both be components. One or more components can be located within an execution process and / or an execution thread, and a component can be located on a computer and / or distributed on two or more computers. In addition, these components can be executed from various computer-readable media with various data structures stored thereon. Components can communicate by means of local and / or remote processes, such as according to signals having one or more data packets, such as data from a component that interacts with another component in a local system, a distributed system by means of a signal and / or interacts with other systems on a network such as the Internet by means of a signal.
[0078] In the prior art including HEVC and VVC, although the case of obtaining a combined prediction value based on multiple reference frames is considered, a certain combination of the intra-frame prediction value and the inter-frame prediction value of the coding unit (CU) is not considered, thereby failing to fully utilize both the intra-frame prediction value and the inter-frame prediction value.
[0079] In addition, in the prior art, video data blocks are usually segmented in CU or PU mode, and this segmentation is limited to segmentation in the vertical and horizontal directions, so it has great limitations and cannot optimally cope with internal changes in the video content within the block.
[0080] In addition, in the prior art, some non-vertical and non-horizontal segmentation methods are proposed, but these segmentations are all performed in the intra-frame prediction stage or the inter-frame prediction stage, that is, the segmented blocks are either intra-frame predicted or inter-frame predicted, thereby limiting the application scope of the non-vertical and non-horizontal segmentation. Moreover, the non-vertical and non-horizontal segmentation methods in the prior art are usually only proposed as a novel segmentation method, and the prediction of the neighboring blocks of the current video block (CU or PU) is not considered during the segmentation (for example, whether the neighboring blocks are intra-frame predicted or inter-frame predicted).
[0081] In order to solve the above technical problem, the present invention proposes to combine the intra-frame prediction value and the inter-frame prediction value of each CU to fully utilize the gains of both the intra-frame prediction and the inter-frame prediction of the CU.
[0082] When considering the intra-frame prediction value, the present invention does not traverse all 35 prediction modes in HEVC and 67 prediction modes in VVC to find the best intra-frame prediction mode, but considers a reduced number of intra-frame prediction modes in all intra-frame prediction modes of the entire CU, for example, using 6 representative intra-frame prediction modes (for example, plane mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode), and determines the best intra-frame prediction mode therefrom. In this way, the gain of intra-frame prediction can be fully utilized while reducing the amount of calculation.
[0083] When considering the inter-frame prediction value, the present invention does not perform inter-frame prediction based on CU as in the prior art, but further divides the CU in non-vertical and horizontal directions, and further determines the prediction mode (intra-frame prediction, inter-frame prediction) of the two divided regions based on the prediction mode of the adjacent CU (i.e., whether the adjacent CU is intra-frame prediction or inter-frame prediction). In order to avoid conceptual ambiguity, the present invention refers to this inter-frame prediction as "first combined prediction", which can be a combined prediction of intra-frame prediction, inter-frame prediction, or intra-frame and inter-frame mixed prediction of the two divided regions.
[0084] In this way, the present invention fully considers the prediction situation of adjacent blocks to perform the segmentation and prediction method determination of the current CU, so that the video content in the current CU can be fully considered, which is particularly beneficial when specific video content (for example, the same object, such as a football, a window, etc.) is divided into two CTUs or CUs.
[0085] Figure 5 (a)-5(d) shows a non-limiting division method of non-vertical and horizontal division according to an embodiment of the present invention. The angles and division positions in the figure are exemplary. It is easy to understand that the angles in the figure can vary within the range of acute angles and obtuse angles. In a preferred embodiment, a set of angles (including several angle values within the open set (0,90) degrees and (90,180) degrees) can be pre-defined and indicated and signaled by angle indexes, thereby saving signaling overhead. In an alternative embodiment, the angle value can be directly determined and signaled. In addition, the division position can also vary. In a preferred embodiment, for a specific angle, the division position can be defined by a vertical displacement relative to the angle, wherein the vertical displacement can be relative to the four vertices or center points of the video data block (such as CU), or relative to other reference positions, and the scope of the present invention is not limited to this.
[0086] In addition, as shown in the figure, no matter what the angle and displacement are, the left block and the right block are necessarily obtained after segmentation, although the left block and the right block may have various shapes.
[0087] exist Figure 5 (a)- Figure 5 In (d), A1 and B1 correspond to the left (e.g., CU) block and the upper block (e.g., CU) of the current video data block (e.g., CU), respectively. The figure shows the preferred positions of the left CU and the upper CU, that is, the bottom edge of the left CU corresponds to the bottom edge of the current CU, and the right side of the upper CU corresponds to the right side of the current CU. These position definitions are conventional definitions in VVC. In other embodiments, the left CU and the upper CU in other positions may also be used for other video coding methods or standards, and the scope of the present invention is not limited to this.
[0088] In a specific embodiment, as in Figure 5 As shown in (a)-5(d), when both the left block (A1) and the upper block (B1) adopt the inter-frame prediction mode, the division method used is as follows Figure 5 (a) shows; when A1 and B1 both use intra-frame prediction mode, the division method used is as follows Figure 5 (b) As shown; when A1 adopts intra-frame prediction mode and B1 adopts inter-frame prediction mode, use Figure 5 (c); When A1 adopts inter-frame prediction mode and B1 adopts intra-frame prediction mode, Figure 5 (d). However, Figure 5 The angles and displacements in (a)-5(d) are exemplary only and the scope of the present invention is not limited thereto.
[0089] Figure 6 A video encoding method according to an embodiment of the present invention is shown. Figure 6 The video encoding method can encode the original uncompressed video and finally output the encoded video bit stream.
[0090] In step 601, the current CTU of the current frame is obtained. In HEVC / VVC, a frame can be directly divided into CTUs, or a frame can be first divided into slices and / or tiles, but ultimately it is encoded in units of CTUs. The division relationship between slices, tiles, and CTUs can be found in the relevant protocols of HEVC / VVC. However, the scope of the present invention is not limited to this, but can be applied to any video encoding method based on image data blocks.
[0091] In step 603, the current CTU is segmented into coding units (CUs). In one embodiment, the CTU may be segmented into CUs in a quadtree manner according to HEVC and previous video coding standards. In an alternative embodiment, the CU may be segmented in accordance with QTBT or other similar nested structures in VVC or later video coding standards. However, the scope of the present invention is not limited thereto, but may be applied to any video coding method based on image data blocks.
[0092] After CU segmentation is performed, CU traversal within the CTU is performed, wherein the following operations are performed for each CU.
[0093] In step 605, for the current CU, the best intra prediction mode corresponding to the following six intra prediction modes is determined: plane mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode. The details of these intra prediction modes can be found in the relevant protocols of HEVC / VVC.
[0094] In a preferred embodiment, the optimal intra prediction cost value may be determined for the six intra prediction modes, and the intra prediction mode corresponding to the optimal intra prediction cost value may be determined as the optimal intra prediction mode.
[0095] After the optimal intra prediction mode is determined, an intra prediction value of the current CU corresponding to the optimal intra prediction mode is determined.
[0096] In step 607, for the current CU, according to the prediction mode (intra-frame prediction or inter-frame prediction) of the left CU and the upper CU of the current CU, a dividing line corresponding to a specific angle parameter is used to divide the CU into two divided areas, and according to the prediction mode (intra-frame prediction or inter-frame prediction) of the left CU and the upper CU, one of the two divided areas adopts intra-frame prediction and the other adopts inter-frame prediction. Figure 5 (a)- Figure 5 (d) shows an example of such a segmentation.
[0097] For the segmentation, in a preferred embodiment, for a specific segmentation angle, the division position can be defined by a vertical displacement relative to the angle, wherein the vertical displacement can be relative to the four vertices or center point of the video data block (such as CU), or relative to other reference positions, and the scope of the present invention is not limited to this.
[0098] In one embodiment, in the segmentation, a fixed angle and a fixed displacement may be used, such as Figure 5 (a)- Figure 5 As shown in (d), it is not necessary to signal the fixed angle and fixed displacement in the encoded video stream.
[0099] In another embodiment, in the segmentation, a set of angles (including several angle values within the open set (0,90) degrees and (90,180) degrees) may be predefined, indicated by an angle index, and signaled in the coded video stream. Additionally or alternatively, in the segmentation, a set of one or more fixed displacements corresponding to each angle may be predefined, indicated by a displacement index, and signaled in the coded video stream.
[0100] In one embodiment, the best angle and the best displacement can be selected from the subsets of these angles and the displacements based on the cost function. In one embodiment, the subset of angles can be subject to the acute angle or obtuse angle range determined by the prediction mode (intra-frame prediction, inter-frame prediction) based on the left CU and the upper CU as defined below, i.e., the (0, 90) degree subset and the (90, 180) degree subset.
[0101] In an alternative embodiment, the angle value may be determined directly and signaled in the coded video stream.In one embodiment, the vertical displacement value relative to a particular angle may be determined directly and signaled in the coded video stream.
[0102] In one embodiment, these signals may be placed in syntax elements at the CU or CTU level in the coded video stream.
[0103] For a specific angle parameter, according to the prediction mode (intra-frame prediction or inter-frame prediction) of the left CU and the upper CU of the current CU, the dividing line corresponding to the angle parameter is used to divide the CU into two divided areas, and according to the prediction mode (intra-frame prediction or inter-frame prediction) of the left CU and the upper CU, one of the two divided areas uses intra-frame prediction and the other uses inter-frame prediction. Here, the angle parameter refers to the angle used for segmentation.
[0104] As a preferred embodiment, when both the left CU and the upper CU adopt inter-frame prediction, the CU is segmented using the first acute angle parameter, and the left area adopts inter-frame prediction, and the right area adopts intra-frame prediction.
[0105] As a preferred embodiment, when both the left CU and the upper CU adopt intra-frame prediction, the second acute angle parameter is used to segment the CU, and the left area adopts intra-frame prediction, and the right area adopts inter-frame prediction.
[0106] As a preferred embodiment, when the left CU adopts intra-frame prediction and the upper CU adopts inter-frame prediction, the third obtuse angle parameter is used to segment the CU, and the left area adopts intra-frame prediction and the right area adopts inter-frame prediction.
[0107] As a preferred embodiment, when the left CU adopts inter-frame prediction and the upper CU adopts intra-frame prediction, the fourth obtuse angle parameter is used to segment the CU, and the left area adopts inter-frame prediction and the right area adopts intra-frame prediction.
[0108] In addition to the angle parameter, a displacement value corresponding to the angle parameter may also be used, the displacement value representing a vertical displacement relative to the corresponding angle. As described above, the displacement value may be fixed, selected from a set of predefined values, and the like.
[0109] For the two segmented regions, a first combined prediction value of the current CU is determined. It is easy to understand that the first combined prediction value is a combination of the corresponding segmented region prediction values obtained by the two segmented regions according to their respective prediction methods.
[0110] In step 609, a second combined prediction value is determined based on the intra-frame prediction value and the first combined prediction value. In a preferred embodiment, the second combined prediction value is determined by weighted averaging the intra-frame prediction value obtained in step 605 and the first combined prediction value obtained in step 607. However, the scope of the present invention is not limited thereto, and any combination method may be used, such as simple averaging.
[0111] In step 611, the second combined prediction value is used as the prediction value of the current CU to predict the current CU. In one embodiment, the residual value of the current CU is obtained by subtracting the prediction value from the video data value of the current CU. It is easy to understand that in step 611, the video data value of the current CU should have been retrieved and temporarily stored in the memory due to the CTU to CU segmentation process. Alternatively, in step 611, the original uncoded video data value of the current CU can be obtained by retrieval.
[0112] Finally, the residual value of the current CU is added to the coded video stream after scanning, quantization, and entropy coding. It is easy to understand that the signal notification of other related parameters can be transmitted using syntax elements in the coded video stream.
[0113] At the decoder end, it can be Figure 6 The methods are essentially complementary operations.
[0114] For example, at the decoder end, information about a current coding tree unit (CTU) of a current frame may be obtained from syntax elements of a video stream. Information about coding unit (CU) segmentation of the current CTU may be obtained from syntax elements of a video stream.
[0115] For each CU, the best intra prediction mode can be obtained in the syntax elements at the CTU level or the syntax elements at the CU level, where the best intra prediction mode includes one of the following six intra prediction modes: planar mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode.
[0116] An intra prediction value corresponding to the optimal intra prediction mode may be determined.
[0117] For each CU, the segmentation information for the current CU can be obtained in the syntax elements at the CTU level or the syntax elements at the CU level, and the segmentation information includes angle parameters and prediction methods (intra-frame prediction or inter-frame prediction). The segmentation information divides the CU into two segmented areas, one of the two segmented areas uses intra-frame prediction, and the other uses inter-frame prediction.
[0118] As a further embodiment, the segmentation information further includes a displacement value corresponding to the angle parameter, and the displacement value indicates a vertical displacement relative to the corresponding angle. In one embodiment, the vertical displacement may be relative to four vertices or a center point of a video data block (e.g., a CU), or relative to other reference positions, and the scope of the present invention is not limited thereto.
[0119] In one embodiment, the angle parameter is an angle index value for a particular angle from a subset of a set of predefined angles.
[0120] In one embodiment, the displacement value is an index value of a set of vertical displacements corresponding to the specific angle. The subset of angles may be subject to the acute angle or obtuse angle range determined by the prediction mode (intra-frame prediction, inter-frame prediction) based on the left CU and the upper CU as defined below, i.e., a (0, 90) degree subset and a (90, 180) degree subset.
[0121] In one embodiment, the displacement value may be a predefined fixed displacement value corresponding to a specific angle.
[0122] As a further embodiment, the prediction mode included in the segmentation information may indicate which of each segmented region uses intra-frame prediction and which uses inter-frame prediction. In a preferred embodiment, the prediction mode may indicate only the prediction mode of one of the segmented regions, while the prediction mode of another segmented region may be implicitly determined due to being different from the prediction mode of the segmented region.
[0123] In a preferred embodiment, for example, when both the left CU and the upper CU adopt inter-frame prediction, the angle parameter is a first acute angle parameter, and the left area adopts inter-frame prediction, and the right area adopts intra-frame prediction. In a preferred embodiment, for example, when both the left CU and the upper CU adopt intra-frame prediction, the angle parameter is a second acute angle parameter, and the left area adopts intra-frame prediction, and the right area adopts inter-frame prediction. In a preferred embodiment, for example, when the left CU adopts intra-frame prediction and the upper CU adopts inter-frame prediction, the angle parameter is a third obtuse angle parameter, and the left area adopts intra-frame prediction, and the right area adopts inter-frame prediction. In a preferred embodiment, for example, when the left CU adopts inter-frame prediction and the upper CU adopts intra-frame prediction, the angle parameter is a fourth obtuse angle parameter, and the left area adopts inter-frame prediction, and the right area adopts intra-frame prediction.
[0124] After obtaining the segmentation information (which may include angle parameters and prediction methods, and may additionally include displacement values) and the prediction method of the current CU, a first combined prediction value may be determined for the two segmented regions based on their respective prediction methods. It is easy to understand that the first combined prediction value is a combination of the corresponding segmented region prediction values obtained by the two segmented regions according to their respective prediction methods.
[0125] Based on the intra prediction value and the first combined prediction value determined above, a second combined prediction value of the current CU can be determined as the prediction value of the current CU. In a preferred embodiment, the second combined prediction value is determined by weighted averaging the obtained intra prediction value and the first combined prediction value. However, the scope of the present invention is not limited to this, and any combination method can be used, such as simple averaging, etc.
[0126] The residual value of the current CU can be obtained from the video stream. It is easy to understand that this step can be performed before other steps, or performed concurrently with one or more steps in the other steps.
[0127] The video data of the current CU may be reconstructed based on the residual value of the current CU and the prediction value of the current CU.
[0128] Figure 6 A device that can be used for video coding and decoding is shown in the figure. The device includes: a processor and a memory, wherein the memory includes processor executable codes or instructions for implementing various video coding and decoding methods of the present invention, wherein the processor can be a video codec.
[0129] According to another aspect, the present disclosure may also relate to an encoder for implementing the above-mentioned encoding method. The encoder may be dedicated hardware. According to another aspect, the present disclosure may also relate to a corresponding decoder for decoding the encoded video stream. According to another aspect, the present disclosure may also relate to a video codec for the above-mentioned encoding method or decoding method.
[0130] According to a specific embodiment of the present invention, the device may be one or more of a system on chip (SOC), a computer, a server, and a cloud server.
[0131] According to another aspect, the present disclosure may also relate to a computer program product for executing the method described herein. According to a further aspect, the computer program product has a non-transitory storage medium having computer code / instructions stored thereon, which, when executed by a processor, can implement various operations described herein.
[0132] Although the above discussion is mainly focused on HEVC / VVC, it is easy for those skilled in the art to understand that the present invention can obviously be applied to other video coding standards as long as these video coding standards adopt a video data block method similar to HEVC / VVC.
[0133] In this disclosure, the terms “picture” and “frame” are often used interchangeably, unless it is explicitly stated that a certain feature or operation is specific to a “frame”.
[0134] When implemented in hardware, the video encoder can be implemented or executed using a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or any combination thereof designed to perform the functions described herein. The general-purpose processor can be a microprocessor, but alternatively, the processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a combination of multiple microprocessors, a combination of one or more microprocessors and a DSP core, or any other such structure. In addition, at least one processor may include one or more modules operable to perform one or more of the steps and / or operations described above.
[0135] When implemented in hardware, the video encoder or a device including a video codec may be a system on a chip (SOC).
[0136] When a video encoder is implemented using hardware circuits such as ASIC, FPGA, etc., it may include various circuit blocks configured to perform various functions. Those skilled in the art may design and implement these circuits in various ways according to various constraints imposed on the entire system to implement the various functions disclosed in the present invention.
[0137] Although the foregoing disclosure discusses exemplary schemes and / or embodiments, it should be noted that many changes and modifications may be made herein without departing from the scope of the described schemes and / or embodiments as defined by the claims. Moreover, although elements of the described schemes and / or embodiments are described or claimed in singular form, plural cases are also contemplated unless limitation to the singular is expressly indicated. In addition, all or part of any scheme and / or embodiment may be used in combination with all or part of any other scheme and / or embodiment unless otherwise indicated.
[0138] According to Example 1, a method for video decoding includes:
[0139] Obtain information about a current coding tree unit (CTU) of a current frame from syntax elements of a video stream;
[0140] Obtain information about dividing the current CTU into coding units (CU) from syntax elements of a video stream; and for each CU: obtain an optimal intra-frame prediction mode from the video stream, wherein the optimal intra-frame prediction mode includes one of the following six intra-frame prediction modes: planar mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode; determine an intra-frame prediction value corresponding to the optimal intra-frame prediction mode; obtain segmentation information for the CU from the video stream, the segmentation information including an angle parameter and a prediction mode (intra-frame prediction, inter-frame prediction), the segmentation information divides the CU into two segmented areas, one of the two segmented areas adopts intra-frame prediction, and the other adopts inter-frame prediction; for the two segmented areas, determine a first combined prediction value based on the prediction mode; determine a second combined prediction value based on the intra-frame prediction value and the first combined prediction value; and use the second combined prediction value as the prediction value of the CU.
[0141] According to Example 2, a method as described in Example 1, wherein: when the left CU and the upper CU both adopt inter-frame prediction, the angle parameter is a first acute angle parameter, and the left area adopts inter-frame prediction, and the right area adopts intra-frame prediction; when the left CU and the upper CU both adopt intra-frame prediction, the angle parameter is a second acute angle parameter, and the left area adopts intra-frame prediction, and the right area adopts inter-frame prediction; when the left CU adopts intra-frame prediction and the upper CU adopts inter-frame prediction, the angle parameter is a third obtuse angle parameter, and the left area adopts intra-frame prediction, and the right area adopts inter-frame prediction; and when the left CU adopts inter-frame prediction and the upper CU adopts intra-frame prediction, the angle parameter is a fourth obtuse angle parameter, and the left area adopts inter-frame prediction, and the right area adopts intra-frame prediction.
[0142] According to Example 3, a method as described in Example 1 or 2, wherein determining the second combined prediction value based on the intra-frame prediction value and the first combined prediction value further includes: determining the second combined prediction value by weighted averaging the intra-frame prediction value and the first combined prediction value.
[0143] According to Example 4, a method as described in any one of Examples 1-3, wherein the segmentation information also includes a displacement value corresponding to the angle parameter, and the displacement value represents a vertical displacement relative to the corresponding angle.
[0144] According to Example 5, a method for video encoding and decoding includes:
[0145] Get the current coding tree unit (CTU) of the current frame;
[0146] Splitting the current CTU into coding units (CUs); and
[0147] For each CU: determine the best intra prediction mode corresponding to the following six intra prediction modes: planar mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode; determine the intra prediction value corresponding to the best intra prediction mode; according to the prediction mode (intra prediction, inter prediction) of the left CU and the upper CU, use the dividing line corresponding to the angle parameter to divide the CU into two divided areas, and according to the prediction mode (intra prediction, inter prediction) of the left CU and the upper CU, one of the two divided areas adopts intra prediction and the other adopts inter prediction; for the two divided areas, determine a first combined prediction value; based on the intra prediction value and the first combined prediction value, determine a second combined prediction value; and use the second combined prediction value as the prediction value of the CU to predict the CU.
[0148] According to Example 6, as described in Example 4, the dividing line further corresponds to a displacement value corresponding to the angle parameter, and the displacement value represents a vertical displacement relative to the corresponding angle.
[0149] According to Example 7, a method as described in Example 4 or 5, wherein: when the left CU and the upper CU both adopt inter-frame prediction, the first acute angle parameter is used to split the CU, and the left area adopts inter-frame prediction, and the right area adopts intra-frame prediction; when the left CU and the upper CU both adopt intra-frame prediction, the second acute angle parameter is used to split the CU, and the left area adopts intra-frame prediction, and the right area adopts inter-frame prediction; when the left CU adopts intra-frame prediction and the upper CU adopts inter-frame prediction, the third obtuse angle parameter is used to split the CU, and the left area adopts intra-frame prediction, and the right area adopts inter-frame prediction; and when the left CU adopts inter-frame prediction and the upper CU adopts intra-frame prediction, the fourth obtuse angle parameter is used to split the CU, and the left area adopts inter-frame prediction, and the right area adopts intra-frame prediction.
[0150] According to Example 8, a method as described in any one of Examples 4-6, wherein determining the second combined prediction value based on the intra-frame prediction value and the first combined prediction value further includes: determining the second combined prediction value by weighted averaging the intra-frame prediction value and the first combined prediction value.
[0151] According to Example 9, a method as described in any one of Examples 4-7, wherein determining the optimal intra-frame prediction mode corresponding to the following six intra-frame prediction modes: planar mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode further includes: determining the optimal intra-frame prediction cost values for the six intra-frame prediction modes; and determining the intra-frame prediction mode corresponding to the optimal intra-frame prediction cost value as the optimal intra-frame prediction mode.
[0152] According to Example 10, a computing device capable of performing video decoding includes: a memory storing executable code for video encoding and decoding; one or more processors or video codecs, which are used to execute the executable code for video encoding and decoding stored in the memory to perform the method described in Example 1.
Claims
1. A method for video decoding, include: Obtain information about a current coding tree unit (CTU) of a current frame from syntax elements of a video stream; Obtain information about coding unit (CU) partitioning of the current CTU from a syntax element of a video stream; and For each CU: Obtaining an optimal intra-frame prediction mode from a video stream, wherein the optimal intra-frame prediction mode includes one of the following six intra-frame prediction modes: a planar mode, a DC mode, an upper block angle mode, a left block angle mode, a vertical mode, and a horizontal mode; Determining an intra-frame prediction value corresponding to the optimal intra-frame prediction mode; Obtaining segmentation information for the CU from a video stream, the segmentation information including an angle parameter and a prediction mode, the prediction mode including intra-frame prediction and inter-frame prediction, the segmentation information divides the CU into two segmented areas, one of the two segmented areas adopts intra-frame prediction, and the other area adopts inter-frame prediction; For the two segmented regions, determining a first combined prediction value based on the prediction method, wherein the first combined prediction value is a combination of corresponding segmented region prediction values obtained by the two segmented regions according to their respective prediction methods; Determine a second combined prediction value based on the intra prediction value and the first combined prediction value; The second combined prediction value is used as the prediction value of the CU.
2. The method according to claim 1, in: When both the left CU and the upper CU adopt inter-frame prediction, the angle parameter is a first acute angle parameter, and the left area adopts inter-frame prediction, and the right area adopts intra-frame prediction; When both the left CU and the upper CU adopt intra-frame prediction, the angle parameter is the second acute angle parameter, and the left area adopts intra-frame prediction, and the right area adopts inter-frame prediction; When the left CU adopts intra-frame prediction and the upper CU adopts inter-frame prediction, the angle parameter is a third obtuse angle parameter, and the left area adopts intra-frame prediction and the right area adopts inter-frame prediction; as well as When the left CU adopts inter-frame prediction and the upper CU adopts intra-frame prediction, the angle parameter is the fourth obtuse angle parameter, and the left area adopts inter-frame prediction and the right area adopts intra-frame prediction.
3. The method according to claim 1 or 2, in, Determining a second combined prediction value based on the intra prediction value and the first combined prediction value further comprises: The second combined prediction value is determined by taking a weighted average of the intra-frame prediction value and the first combined prediction value.
4. The method according to claim 1, in, The segmentation information further includes a displacement value corresponding to the angle parameter, wherein the displacement value indicates a vertical displacement relative to the corresponding angle.
5. A method for video encoding and decoding, include: Get the current coding tree unit (CTU) of the current frame; Splitting the current CTU into coding units (CUs); as well as For each CU: Determine the best intra prediction mode corresponding to the following six intra prediction modes: planar mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode; Determining an intra-frame prediction value corresponding to the optimal intra-frame prediction mode; According to the prediction mode of the left CU and the upper CU, the prediction mode includes intra-frame prediction and inter-frame prediction, the CU is segmented by using a segmentation line corresponding to the angle parameter to obtain two segmentation areas, and according to the prediction mode of the left CU and the upper CU, the prediction mode includes intra-frame prediction and inter-frame prediction, one of the two segmentation areas adopts intra-frame prediction, and the other adopts inter-frame prediction; For the two segmented regions, determining a first combined prediction value, where the first combined prediction value is a combination of corresponding segmented region prediction values obtained by the two segmented regions according to respective prediction methods; Determine a second combined prediction value based on the intra prediction value and the first combined prediction value; and The second combined prediction value is used as the prediction value of the CU to predict the CU.
6. The method according to claim 5, in, The segmentation line also corresponds to a displacement value corresponding to the angle parameter, and the displacement value represents a vertical displacement relative to the corresponding angle.
7. The method according to claim 5, in: When both the left CU and the upper CU use inter-frame prediction, the CU is segmented using the first acute angle parameter, and the left area uses inter-frame prediction and the right area uses intra-frame prediction; When both the left CU and the upper CU use intra-frame prediction, the CU is segmented using the second acute angle parameter, and the left area uses intra-frame prediction and the right area uses inter-frame prediction; When the left CU adopts intra prediction and the upper CU adopts inter prediction, the CU is segmented using the third obtuse angle parameter, and the left area adopts intra prediction and the right area adopts inter prediction; as well as When the left CU adopts inter-frame prediction and the upper CU adopts intra-frame prediction, the CU is partitioned using the fourth obtuse angle parameter, and the left area adopts inter-frame prediction and the right area adopts intra-frame prediction.
8. The method according to claim 5, in, Determining a second combined prediction value based on the intra prediction value and the first combined prediction value further comprises: The second combined prediction value is determined by taking a weighted average of the intra-frame prediction value and the first combined prediction value.
9. The method according to claim 5, in, Determining the best intra prediction mode corresponding to the following six intra prediction modes: planar mode, DC mode, upper block angle mode, left block angle mode, vertical mode and horizontal mode further includes: Determining optimal intra prediction cost values for the six intra prediction modes; and An intra prediction mode corresponding to an optimal intra prediction cost value is determined as the optimal intra prediction mode.
10. A computing device capable of performing video decoding, wherein include: A memory storing executable codes for video encoding and decoding; One or more processors or video codecs, which are used to execute executable codes for video coding and decoding stored in the memory to perform the method according to claim 1.
