Intra prediction method and device
The intra prediction method addresses low accuracy in PDPC by determining a second angle prediction mode based on texture information, enhancing the accuracy of prediction samples through a position-dependent intra-prediction combination.
Patent Information
- Application Number
- JP2024515523
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-30
- Filing Date
- 2022-09-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-09-23
AI Technical Summary
The conventional Position Dependent Intra Prediction Combination (PDPC) method in Versatile Video Coding (VVC) standards produces prediction samples with low accuracy due to insufficient consideration of texture information and linear relationships between reference samples and prediction angles.
An intra prediction method that determines a second angle prediction mode based on texture information of a reference sample set, modifying prediction samples using a position-dependent intra-prediction combination to improve accuracy by considering the texture information and deriving a second angle prediction mode from gradient histograms.
Enhances the accuracy of corrected prediction samples by accounting for texture information, leading to improved intra prediction performance.
Smart Images

Figure 2024530824000001_ABST
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to Chinese Patent Application No. 202111165824.0, filed in China on September 30, 2021, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the technical field of video codec standards, and in particular to a method and terminal for intra prediction. [Background technology]
[0003] In the Versatile Video Coding (VVC) standard, a Position Dependent Intra Prediction Combination (PDPC) method is usually used to modify the prediction samples corresponding to the prediction block, further improving the accuracy of intra prediction.
[0004] In the related art, the PDPC determines a prediction sample and a first reference sample according to an angle prediction mode corresponding to a prediction block, and further adds or subtracts 180 degrees to the first prediction angle corresponding to the first prediction angle of the first reference sample based on the prediction sample to obtain a second prediction angle corresponding to the second reference sample. Then, the prediction sample is modified according to the first reference sample and the second reference sample to obtain a modified prediction sample. However, the modified prediction sample obtained by the PDPC method has low accuracy. Summary of the Invention [Problem to be solved by the invention]
[0005] The embodiments of the present application provide an intra prediction method and terminal that can solve the problem of low accuracy of corrected predicted samples obtained by conventional PDPC methods. [Means for solving the problem]
[0006] In the first aspect, determining a prediction sample corresponding to the prediction block based on an angular prediction mode corresponding to the prediction block; and modifying the prediction samples using a position dependent intra prediction combination (PDPC) to generate modified prediction samples, The step of modifying the prediction samples using a position dependent intra prediction combination comprises: obtaining texture information of a reference sample set corresponding to a first angular prediction mode, the first angular prediction mode being an angular prediction mode corresponding to the prediction block, the reference sample set including at least one reference sample; determining a second angle prediction mode according to the texture information; and modifying the prediction samples according to target reference samples corresponding to the second angular prediction mode.
[0007] In a second embodiment, A first determination module for determining a prediction sample corresponding to a prediction block according to an angular prediction mode corresponding to the prediction block; a processing module for modifying the prediction samples using a position dependent intra prediction combination (PDPC) to generate modified prediction samples, The processing module includes: an acquisition module for acquiring texture information of a reference sample set corresponding to a first angular prediction mode, the first angular prediction mode being an angular prediction mode corresponding to the prediction block, the reference sample set including at least one reference sample; a second determination module for determining a second angular prediction mode according to the texture information; a modification module for modifying the prediction samples according to target reference samples corresponding to the second angular prediction mode.
[0008] In a third aspect, there is provided a terminal including a processor, a memory, and programs or commands stored in the memory and executable on the processor, the programs or commands, when executed by the processor, realizing steps of the method according to the first aspect.
[0009] In a fourth aspect, there is provided a readable storage medium having stored thereon a program or commands which, when executed by a processor, effectuate the steps of the method according to the first aspect.
[0010] In a fifth aspect, there is provided a chip comprising a processor and a communications interface, the communications interface and the processor being coupled, the processor being adapted to execute programs or commands to effectuate steps of the method of the first aspect.
[0011] In a sixth aspect, there is provided a computer program / program product stored on a non-volatile storage medium and executed by at least one processor to implement the steps of the method according to the first aspect.
[0012] In a seventh aspect there is provided a communications device configured to perform and implement the steps of the method according to the first aspect. Effect of the Invention
[0013] In the embodiment of the present application, the second prediction angle is not obtained by adding or subtracting 180 degrees to the first prediction angle corresponding to the first angle prediction mode, but by obtaining texture information of a reference sample set corresponding to the first angle prediction mode, and determining a second angle prediction mode according to the texture information, and determining the prediction angle corresponding to the second angle prediction mode as the second prediction angle. Furthermore, the prediction sample is corrected according to a target reference sample corresponding to the second angle prediction mode, so that the prediction sample is corrected using the second angle prediction mode determined based on the texture information, thereby improving the accuracy of the corrected prediction sample. [Brief description of the drawings]
[0014] [Figure 1] FIG. 13 is a schematic diagram of a mapping relationship between an angle mode and an offset value provided in an embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of a predicted angle provided in an embodiment of the present application. [Diagram 3] FIG. 1 is a diagram showing an application scene of a conventional PDPC method. [Figure 4] 1 is a flowchart of an intra prediction method provided in an embodiment of the present application. [Diagram 5] FIG. 1 is a scene diagram illustrating an application of a conventional decoder-side intra mode derivation (DIMD) method. [Figure 6] FIG. 2 is an application scene diagram of the PDPC method provided in the embodiments of the present application. [Figure 7] FIG. 2 is a structural diagram of a decoder provided in an embodiment of the present application; [Figure 8] FIG. 2 is a structural diagram of a communication device provided in an embodiment of the present application; [Figure 9] FIG. 2 is a hardware structure schematic diagram of a terminal provided in an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, the technical solutions in the embodiments of the present application will be clearly described with reference to the drawings in the embodiments of the present application, and it is to be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art belong to the protection scope of the present application.
[0016] The terms "first", "second", etc. in the specification and claims of the present application are not intended to describe a particular order or sequence, but are intended to distinguish between similar objects. It should be understood that the terms used in this manner may be substituted for each other where appropriate, so that the embodiments of the present application may be performed in an order other than that shown or described herein, and that the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited, for example, the first object may be one or more. In the specification and claims, "and / or" indicates at least one of the connected objects, and the symbol " / " generally indicates that the related objects before and after are in an "or" relationship.
[0017] The decoder corresponding to the intra prediction method in the embodiment of the present application may be a terminal that may be called a terminal device or a user terminal (User Equipment, UE). The terminal may be a terminal side device such as a mobile phone, a tablet personal computer, a laptop computer also called a notebook computer, a personal digital assistant (PDA), a personal digital assistant, a netbook, an ultra-mobile personal computer (UMPC), a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, a vehicle user equipment (VUE), a pedestrian user equipment (PUE), etc., and the wearable device includes a smart watch, a bracelet, an earphone, a pair of glasses, etc. It should be noted that the specific type of the terminal is not limited in the embodiment of the present application.
[0018] For ease of understanding, some contents related to the embodiments of the present application are described below.
[0019] Currently, intra prediction modes are typically used to process various types of textures in an image, including angular prediction modes, direct current (DC) prediction modes, and planar prediction modes, where the index range corresponding to the angular prediction modes is -14 to 80, the index corresponding to the DC prediction mode is 1, and the index corresponding to the planar prediction mode is 0.
[0020] Here, the above-mentioned angular prediction mode corresponds to performing offset processing on the prediction block in the horizontal or vertical direction, and the mapping relationship between different angular modes and offset values is shown in detail in Fig. 1. Here, in Fig. 1, predModeIntra is an index corresponding to the angular prediction mode, and intraPredAngle is an offset value.
[0021] For ease of understanding, reference is made to FIG. 2, which shows the offset positions corresponding to each angular prediction mode.
[0022] Furthermore, the inverse angle value can be obtained based on the offset value, and the specific formula is as follows:
[0023]
number
[0024] where invAngle is the inverse angle value and intraPredAngle is the offset value.
[0025] It should be understood that the use of PDPC is a supported angular prediction mode when the index corresponding to the angular prediction mode is greater than 50 or less than 18. PDPC is an intra prediction method that can further modify prediction samples after intra prediction.
[0026] The conventional PDPC method will now be described in detail.
[0027] Referring to Fig. 3, as shown in Fig. 3, according to a prediction angle corresponding to a prediction block, the coordinate of a prediction sample corresponding to a prediction block is pred(x', y'), and the coordinate of reference sample 1 is R(x, -1), that is, reference sample 1 is located above the current prediction block. Here, reference sample 1 is determined according to a prediction angle corresponding to the current prediction block based on a prediction sample.
[0028] Then, the angle between the prediction sample and the reference sample 1 is rotated by 180 degrees to obtain the reference sample 2. As shown in FIG. 3, the coordinate of the reference sample 2 is R(-1, y), that is, the reference sample 2 is located on the left side of the prediction block. Here, the reference sample 2 includes at least one of the reference sample 1 and the reference sample 2.
[0029] Hereinafter, how the scaling factor is calculated in the conventional PDPC method will be specifically described.
[0030] 1. If the index corresponding to the angular prediction mode of the predicted block is greater than 50, the scaling factor can be calculated by the following pseudo code: nScale=Min(2,Log2(nTbH)-Floor(Log2(3* invAngle-2))+8)
[0031] where nScale is a scaling factor, nTbH is the height of the prediction block, and invAngle is the inverse angle value corresponding to the prediction block.
[0032] 2. If the index corresponding to the angular prediction mode of the prediction block is less than 18 and the corresponding index is not equal to 0 or 1, the scaling factor can be calculated by the following pseudo code: nScale= Min(2,Log2(nTbW)-Floor(Log2(3*invAngle-2))+8)
[0033] where nScale is a scaling factor, nTbW is the width of the prediction block, and invAngle is the inverse angle value corresponding to the prediction block.
[0034] 3. Otherwise, if the index corresponding to the angular prediction mode of the prediction block is equal to 18, 50, 0 or 1, the scaling factor can be calculated by the following pseudo code: nScale=(Log2(nTbW)+Log2(nTbH)-2)>>2
[0035] where nScale is the scaling factor, nTbW is the width of the prediction block, and nTbH is the height of the prediction block.
[0036] Hereinafter, how the variables are calculated in the conventional PDPC method will be specifically described.
[0037] It should be understood that the above variables include refL[x][y], refT[x][y], wT[y] and wL[x]. Here, refL[x][y] characterizes a reference sample located to the left of the prediction block, and in the scene shown in Fig. 3, the variable characterizes reference sample 2. refT[x][y] characterizes a reference sample located above the prediction block, and in the scene shown in Fig. 3, the variable characterizes reference sample 1. wT[y] characterizes a weight value of a reference sample to the left of the prediction block. wL[x] characterizes a weight value of a reference sample above the prediction block.
[0038] First, the reference sample arrays mainRef[x] and sideRef[y] are determined. mainRef[x]=p[x][-1] sideRef[y]=p[-1][y]
[0039] Here, mainRef[x] is the coordinate where the prediction sample is mapped to the reference sample above the prediction block, and in the scene shown, it is associated with reference sample 1. sideRef[y] is the coordinate where the prediction sample is mapped to the reference sample on the left side of the prediction block, and in the scene shown in Fig. 3, it is associated with reference sample 2. That is, the above p[x] is the horizontal coordinate of the prediction sample, and the above p[y] is the vertical coordinate of the prediction sample.
[0040] 1. If the index corresponding to the angular prediction mode of the prediction block is equal to 0 or 1, that is, the intra prediction mode corresponding to the prediction block is DC mode or Planar mode, the variables can be calculated by the following pseudo code: refL[x][y]=p[-1][y] refT[x][y]=p[x][-1] wT[y]=32>>((y<1)>>nScale) wL[x]=32>>((x<1)>>nScale)
[0041] Here, p[-1][y] is the coordinate where the predicted sample is mapped to the reference sample to the left of the predicted block, p[x][-1] is the coordinate where the predicted sample is mapped to the reference sample above the predicted block, and nScale is a scaling factor.
[0042] 2. If the index corresponding to the angular prediction mode of the predicted block is equal to 18 or 50, the variables can be calculated by the following pseudo code: refL[x][y]=p[-1][y]-p[-1][-1]+predSamples[x][y] refT[x][y]=p[x][-1]-p[-1][-1]+predSamples[x][y] wT[y]=(predModeIntra==INTRA_ANGULAR18)?32>((y<1)>>nScale):0 wL[x]=(predModeIntra==INTRA_ANGULAR50)?32>((x<1)>>nScale):0
[0043] Here, predSamples[x][y] are the coordinates of the prediction samples, predModeIntra is the angular prediction mode of the prediction block, INTRA_ANGULAR18 indicates that the index corresponding to the angular prediction mode of the prediction block is 18, nScale is a scaling factor, and INTRA_ANGULAR50 indicates that the index corresponding to the angular prediction mode of the prediction block is 50.
[0044] 3. If the index corresponding to the angular prediction mode of the predicted block is less than 18 and the scaling factor is greater than or equal to 0, the variables can be calculated by the following pseudo code: dXInt[y]=((y+1)*invAngle+256)>>9 dX[x][y]=x+dXInt[y]
[0045] Here, the variable dXInt[y] represents the offset value of the X-coordinate of the reference sample above the prediction block relative to the X-coordinate of the prediction sample, the variable dX[x][y] is used to determine the position of the reference sample above the prediction block, and invAngle is the inverse angle value corresponding to the prediction block.
[0046] refL[x][y]=0 refT[x][y]=(y<(3< <nScale))?mainRef[dX[x][y]]:0 wT[y]=32>>((y<1)>>nScale) wL[x]=0
[0047] 4. If the index corresponding to the angular prediction mode of the predicted block is greater than 50 and the scaling factor is greater than or equal to 0, the variables can be calculated by the following pseudo code: dYInt[x]=((x+1)*invAngle+256)>>9 dY[x][y]=y+dYInt[x]
[0048] Here, the variable dYInt[x] represents the offset value of the Y coordinate of the reference sample on the left side of the prediction block relative to the Y coordinate of the prediction sample, the variable dY[x][y] is used to determine the position of the reference sample on the left side of the prediction block, and invAngle is the inverse angle value corresponding to the prediction block.
[0049] refL[x][y]=(x<(3< <nScale))?sideRef[dY[x][y]]:0 refT[x][y]=0 wT[y]=0 wL[x]=32>>((x<1)>>nScale)
[0050] 5. If the index corresponding to the angular prediction mode of the prediction block is greater than 18 and less than 50, set refL[x][y], refT[x][y], wT[y] and wL[x] to 0.
[0051] Hereinafter, it will be specifically described how the variables are used to modify the predicted samples and obtain the modified predicted samples in the conventional PDPC method. predSamples[x'][y']=Clip1(refL[x][y]*wL[x]+refT[x][y]*wT[y]+((64-wL[x]-wT[y])*predSamples[x][y]+32)>>6)
[0052] where predSamples[x'][y'] are the corrected predicted samples and predSamples[x][y] are the uncorrected predicted samples.
[0053] In the conventional PDPC method, as shown in Fig. 3, a reference sample 1 is determined based on a first prediction angle corresponding to an angle prediction mode of a prediction block, and then an angle between the prediction sample and reference sample 1 is rotated by 180 degrees to obtain a reference sample 2. However, the process of determining the reference sample 2 does not fully consider texture information corresponding to each reference sample among the reference samples, and there may be no linear relationship between the second prediction angle corresponding to reference sample 2 and the first prediction angle corresponding to reference sample 1, so that the corrected prediction sample obtained by the PDPC method is not accurate, and the accuracy of intra prediction is reduced.
[0054] Please refer to Figure 4, which is a flowchart of the intra prediction method provided in this embodiment. The intra prediction method provided in this embodiment includes the following steps S101 and S102.
[0055] In S101, a prediction sample corresponding to a prediction block is determined based on an angular prediction mode corresponding to the prediction block.
[0056] As mentioned above, the first reference sample and the second reference sample can be determined according to the angle prediction mode corresponding to the prediction block. Here, the first reference sample may be understood as the reference sample 1 in the scene shown in Fig. 3, and the second reference sample may be understood as the reference sample 2 in the scene shown in Fig. 3. Furthermore, a prediction sample is obtained according to the reference sample 1 and the reference sample 2. Here, the prediction sample may be understood as the prediction sample in the scene shown in Fig. 3.
[0057] At S102, the prediction samples are modified using a position-dependent intra-prediction combination (PDPC) to generate modified prediction samples.
[0058] In this step, if the index corresponding to the angle prediction mode of the angle prediction mode is smaller than 18 or larger than 50, the prediction sample is modified using the PDPC, and a modified prediction sample is generated, so that the accuracy of the modified prediction sample can be improved.
[0059] Wherein, the step of modifying the prediction samples using position-dependent intra prediction combination includes the following steps S1021, S1022, and S1023.
[0060] In S1021, texture information of a reference sample set corresponding to a first angular prediction mode is obtained.
[0061] In this step, the first angle prediction mode is an angle prediction mode corresponding to a prediction block, the reference sample set is determined according to a first prediction angle corresponding to the first angle prediction mode, and the reference sample set includes at least one reference sample, and the texture information may be understood as a gradient histogram generated using decoder-side intra mode derivation (DIMD), or an angle prediction mode corresponding to a decoded block adjacent to the prediction block. For specific technical solutions of obtaining texture information, please refer to the following embodiments.
[0062] In S1022, a second angular prediction mode is determined according to the texture information.
[0063] In this step, after obtaining the texture information, an optional embodiment may be to derive the second angle prediction mode by comparing the magnitude of the amplitude in the gradient histograms, and another optional embodiment may be to derive the second angle prediction mode from the angle prediction mode corresponding to the decoded block.
[0064] In S1023, the prediction samples are modified according to target reference samples corresponding to the second angular prediction mode.
[0065] It should be understood that when the index corresponding to the angular prediction mode of the prediction block is greater than 50, the first reference sample corresponding to the prediction block is located above the prediction block, and the second reference sample corresponding to the prediction block is located to the left of the prediction block, but when the index corresponding to the angular prediction mode of the prediction block is less than 18, the first reference sample corresponding to the prediction block is located above the prediction block, and the second reference sample corresponding to the prediction block is located to the left of the prediction block. The above second reference sample may be understood as a target reference sample.
[0066] In this step, after obtaining the second angle prediction mode, the target reference sample corresponding to the second angle prediction mode can be used to correct the prediction sample. For specific embodiments, please refer to the following examples.
[0067] In the embodiment of the present application, the second prediction angle is not obtained by adding or subtracting 180 degrees to the first prediction angle corresponding to the first angle prediction mode, but by obtaining texture information of a reference sample set corresponding to the first angle prediction mode, and determining a second angle prediction mode according to the texture information, and determining the prediction angle corresponding to the second angle prediction mode as the second prediction angle. Furthermore, the prediction sample is corrected according to a target reference sample corresponding to the second angle prediction mode, so that the prediction sample is corrected using the second angle prediction mode determined based on the texture information, thereby improving the accuracy of the corrected prediction sample.
[0068] Optionally, the step of obtaining texture information of a reference sample set corresponding to a first angular prediction mode includes: performing texture analysis on at least a portion of pixel points in a reconstructed image located above the prediction block and adjacent to the prediction block when the index corresponding to the first angular prediction mode is smaller than a first preset index, to obtain the texture information; and if the index corresponding to the first angle prediction mode is greater than the second preset index, performing a texture analysis process on at least a portion of pixel points in the reconstructed image that are located to the left of the prediction block and adjacent to the prediction block to obtain the texture information.
[0069] One way to obtain texture information is to perform texture analysis on the reconstructed images neighboring the predicted block.
[0070] In this embodiment, optionally, the first preset index is 18 and the second preset index is 50. If the index corresponding to the first angle prediction mode is smaller than the first preset index, when it is determined that the reference sample set is located above the prediction block, perform texture analysis processing on at least one row of pixels of the reconstructed image above and adjacent to the prediction block to obtain texture information.
[0071] If the index corresponding to the first angle prediction mode is greater than the second preset index, when it is determined that the reference sample set is located to the left of the current prediction block, a texture analysis process is performed on at least one column of pixels of the reconstructed image that is to the left of the current prediction block and adjacent to the current prediction block to obtain texture information.
[0072] It should be appreciated that DIMD can be used to perform texture analysis on the reference sample set to obtain texture information, and further derive the second angular prediction mode from the texture information.
[0073] Here, the DIMD mode is a technique for indirectly deriving an intra prediction mode. If the index corresponding to the first angular prediction mode is smaller than the first preset index, a Sobel filter is applied to at least one row of pixels above the prediction block to perform gradient histogram calculation, the gradient direction is converted to the angular prediction mode, and the gradient strength is accumulated as the amplitude of the angular prediction mode to generate a gradient histogram, and the gradient histogram is determined as the texture information of the reference sample set.
[0074] If the index corresponding to the first angular prediction mode is greater than the second preset index, a gradient histogram calculation is performed by applying a Sobel filter to at least one column of pixels of the reconstructed image to the left of the prediction block and adjacent to the current prediction block, and further generating a gradient histogram, and determining the gradient histogram as texture information of the reference sample set.
[0075] For ease of understanding, please refer to Figure 5. As shown in Figure 5, DIMD can use a window to perform texture analysis on a reference sample set. If the size corresponding to the prediction block is 4*4, two windows as shown in Figure 5 can be used to perform texture analysis on at least a part of the pixels located above the prediction block and at least a part of the pixels located below the prediction block. If the size corresponding to the prediction block is not 4*4, a sliding window as shown in Figure 5 can be used to perform texture analysis on at least a part of the pixels located above the prediction block and at least a part of the pixels located below the prediction block.
[0076] Optionally, the step of obtaining texture information of a reference sample set corresponding to a first angular prediction mode includes: obtaining the texture information based on an intra prediction mode corresponding to a decoded block located above and adjacent to the prediction block when the index corresponding to the first angular prediction mode is smaller than a first preset index; and if the index corresponding to the first angular prediction mode is greater than the second preset index, obtaining the texture information based on an intra prediction mode corresponding to a decoded block located to the left of the prediction block and adjacent to the prediction block.
[0077] One way to obtain the texture information is to determine the texture information based on the angular prediction modes corresponding to the decoded blocks adjacent to the predicted block.
[0078] In this embodiment, optionally, the first preset index is 18, and the second preset index is 50. If the index corresponding to the first angular prediction mode is smaller than the first preset index, it is determined that the reference sample set is located above the prediction block, and an intra prediction mode corresponding to a decoded block that is above the prediction block and adjacent to the prediction block can be obtained, and a gradient histogram characterized by the intra prediction mode is determined as texture information.
[0079] If the index corresponding to the first angle prediction mode is greater than the second preset index, it is determined that the reference sample set is located to the left of the prediction block, and an intra prediction mode corresponding to a decoded block that is to the left of the prediction block and adjacent to the prediction block can be obtained, and a gradient histogram characterized by the intra prediction mode is determined as texture information.
[0080] Optionally, the step of modifying the prediction samples according to target reference samples corresponding to the second angular prediction mode further comprises: determining a scaling factor and a target inverse angle value according to a first predicted angle corresponding to the first angle prediction mode and a second predicted angle corresponding to the second angle prediction mode; and modifying the predicted samples using the target reference samples, the scaling factor, and the target inverse angle value.
[0081] The first predicted angle is a predicted angle corresponding to a first angle prediction mode, and the second predicted angle is a predicted angle corresponding to a second angle prediction mode. After obtaining the first predicted angle and the second predicted angle, the first predicted angle and the second predicted angle can be used to calculate a scaling factor and a target inverse angle value. Please refer to the following examples for specific technical solutions.
[0082] In this embodiment, after determining the scaling factor and the target inverse angle value, the prediction sample can be modified using the target reference sample, the scaling factor and the target inverse angle value to obtain a modified prediction sample, thereby improving the accuracy of intra prediction.
[0083] Optionally, the step of determining a scaling factor and a target inverse angle value according to a first predicted angle corresponding to the first angle prediction mode and a second predicted angle corresponding to the second angle prediction mode further comprises: determining the scaling factor using a first inverse angle value corresponding to the first predicted angle; determining the target inverse angle value according to the first predicted angle and the second predicted angle.
[0084] In this embodiment, an optional embodiment is to calculate a scaling factor using a first inverse angle value corresponding to a first predicted angle, and then determine a target inverse angle value according to the first predicted angle and the second predicted angle, where, for technical solutions for determining the target inverse angle value, please refer to the following embodiments.
[0085] As mentioned above, the pseudo code for calculating the scaling factor needs to use the parameter invAngle. In this embodiment, the parameter invAngle can be set as a first inverse angle value corresponding to a first prediction angle, that is, an inverse angle value corresponding to a prediction block.
[0086] Optionally, the step of determining a scaling factor and a target inverse angle value according to a first prediction angle corresponding to the first angle prediction mode and a second prediction angle corresponding to the second angle prediction mode further comprises: determining the target inverse angle value according to the first predicted angle and the second predicted angle; and determining the scaling factor using the target inverse angle value.
[0087] In this embodiment, an optional embodiment is to determine a target inverse angle value according to the first predicted angle and the second predicted angle, and then use the target inverse angle value to calculate the scaling factor, that is, to obtain the scaling factor by substituting the target inverse angle value into the pseudo code for calculating the scaling factor, where the technical solution for determining the target inverse angle value is referred to the following embodiment.
[0088] As mentioned above, the pseudo code for calculating the scaling factor requires the use of a parameter invAngle. In this embodiment, the parameter invAngle can be set as a target inverse angle value calculated according to the first predicted angle and the second predicted angle.
[0089] The technical solution for calculating the target inverse angle value will be specifically described below.
[0090] Optionally, the step of determining the target inverse angle value in response to the first predicted angle and the second predicted angle further comprises: If the first angle prediction mode and the second angle prediction mode do not satisfy a preset condition, rounding a division result of a first preset value and a first offset value to obtain the target inverse angle value; If the first angle prediction mode and the second angle prediction mode satisfy a preset condition, obtaining the target inverse angle value according to a second offset value and a second preset value.
[0091] In this embodiment, the preset conditions are set in advance, and the specific description of the preset conditions is given in the following embodiments.
[0092] When the first angle prediction mode and the second angle prediction mode do not satisfy the preset conditions, the target inverse angle value can be obtained by the above inverse angle value calculation formula. The inverse angle value calculation formula is as follows:
[0093]
number
[0094] where invAngle is a target inverse angle value. 512*32 is a first preset value, that is, the first preset value is 16384. predModeAng is a first offset value, and the first offset value corresponding to the first predicted angle, i.e., the offset value corresponding to the first angle prediction mode, can be obtained by referring to FIG. 1.
[0095] When the first predicted angle and the second predicted angle satisfy the preset condition, a second offset value corresponding to the second predicted angle, i.e., an offset value corresponding to a second angle prediction mode, can be obtained by referring to Fig. 1. Furthermore, a target inverse angle value is obtained according to the second offset value and the second preset value. For specific technical solutions, please refer to the following embodiments.
[0096] Optionally, the step of obtaining the target inverse angle value according to a second offset value and a second preset value further comprises: The method includes performing a left shift operation on the second offset value and the second preset value to obtain the target inverse angle value.
[0097] In an alternative embodiment, after obtaining the second offset value and the second preset value, a left shift operation is performed on the second offset value and the second preset value to obtain the target reverse angle value. Specifically, the target reverse angle value can be calculated by the following pseudo code: invAngle=predModeAng1< <k
[0098] Here, invAngle is a target inverse angle value, predModeAng1 is a second offset value, and k is a second preset value, which is related to the accuracy of the second angle prediction mode. Exemplarily, if the accuracy of the second angle prediction mode is 32, k is equal to 4.
[0099] Optionally, the step of obtaining the target inverse angle value according to a second offset value and a second preset value further comprises: performing a left shift operation on the second offset value and the second preset value to obtain a second inverse angle value; rounding a result of dividing the first preset value by the first offset value to obtain a third inverse angle value; and performing a weighted addition process on the second inverse angle value and the third inverse angle value to determine the result as the target inverse angle value.
[0100] Another optional embodiment is to perform a left shift operation on the second offset value and the second preset value to obtain a second inverse angle value. It should be understood that the pseudo code for calculating the second inverse angle value in this embodiment is the same as the pseudo code for calculating the target inverse angle value in the above embodiment, and may be shown as follows: invAngle1=predModeAng1< <k
[0101] Here, invAngle1 is a second inverse angle value, predModeAng1 is a second offset value, and k is a second preset value.
[0102] 1, a first offset value corresponding to a first predicted angle is obtained, and a result of dividing the first preset value by the first offset value is rounded to obtain a third inverse angle value.
[0103]
number
[0104] where invAngle0 is the third inverse angle value, predModeAng is the first offset value, and 512*32 is the first preset value, that is, the first preset value is 16384.
[0105] After obtaining the second and third inverse angle values, a multiplication result of the second inverse angle value and a preset first weight value is set as a first value, a multiplication result of the third inverse angle value and a preset second weight value is set as a second value, and a sum of the first and second values is set as a target inverse angle value. Optionally, an average value of the second and third inverse angle values is determined as the target inverse angle value.
[0106] For ease of understanding, referring to Fig. 6, a first reference sample R1 can be determined based on a predicted sample using a first prediction angle corresponding to a predicted block, as shown in Fig. 6. As shown in Fig. 6, a reference sample R2 indicated by a dashed line in the figure is the position of a second reference sample determined in a conventional PDPC method, and it can be seen that in the conventional PDPC method, a predicted sample, a first reference sample, and a second reference sample are located on the same straight line.
[0107] In this embodiment, after obtaining the target reverse angle value, the position of the second reference sample can be modified according to the target reverse angle value. As shown in Fig. 6, the modified second reference sample is the reference sample R3 indicated by the solid line in the figure. Furthermore, the predicted sample is modified according to the first reference sample and the modified second reference sample.
[0108] Optionally, the preset condition is: an index corresponding to a first angle prediction mode is smaller than a first preset index, an index corresponding to the first angle prediction mode is different from a third preset index, an index corresponding to a second angle prediction mode is larger than a second preset index, and a target scaling factor is equal to or larger than a third preset value; The index corresponding to the first angle prediction mode is greater than the second preset index, the index corresponding to the second angle prediction mode is smaller than the first preset index, the index corresponding to the second angle prediction mode is different from the third preset index, and the target scaling factor is greater than or equal to a third preset value.
[0109] Optionally, the first preset index is 18, the second preset index is 50, and the third preset index is 0 and 1.
[0110] After obtaining an index corresponding to the first angle prediction mode and an index corresponding to the second angle prediction mode, it can be determined that the first angle prediction mode and the second angle prediction mode satisfy a preset condition if any one of the following is satisfied:
[0111] One is that the index corresponding to the first angle prediction mode is smaller than 18, the index corresponding to the first angle prediction mode is not equal to 0 or 1, the index corresponding to the second angle prediction mode is greater than 50, and the target scaling factor is greater than or equal to a third preset value, and optionally, the third preset value is 0.
[0112] Here, when the scaling factor is calculated first and then the target inverse angle value is calculated, the target scaling factor is a scaling factor calculated using the first inverse angle value, i.e., the inverse angle value corresponding to the first angle prediction mode. When the target inverse angle value is calculated first and then the scaling factor is calculated, the target scaling factor is a scaling factor calculated using the target inverse angle value.
[0113] The other is that the index corresponding to the first angle prediction mode is greater than 50, the index corresponding to the second angle prediction mode is less than 18, the index corresponding to the second angle prediction mode is not equal to 0 or 1, and the target scaling factor is greater than or equal to a third preset value.
[0114] Optionally, the preset condition is: an index corresponding to a first angle prediction mode is smaller than a first preset index, an index corresponding to the first angle prediction mode is different from a third preset index, and a target scaling factor is equal to or greater than a third preset value; and an index corresponding to a first angle prediction mode is greater than a second preset index, and the target scaling factor is greater than or equal to a third preset value.
[0115] If any one of the following is satisfied, it may be determined that the first angle prediction mode and the second angle prediction mode satisfy the preset condition.
[0116] As described above, the first preset index is 18, the second preset index is 50, and the third preset indexes are 0 and 1.
[0117] One is that the index corresponding to the first angle prediction mode is smaller than 18, the index corresponding to the first angle prediction mode is not 0 or 1, and the target scaling factor is equal to or greater than 0.
[0118] The other is that the index corresponding to the first angle prediction mode is greater than 50 and the target scaling factor is greater than or equal to 0.
[0119] Optionally, the step of modifying the predicted samples using the target reference samples, the scaling factor and the target inverse angle value further comprises: using the target reference sample, the scaling factor and the target inverse angle value to obtain a target variable; and modifying the prediction samples using the target variable.
[0120] In this embodiment, the coordinates of the target reference sample, the scaling factor and the target inverse angle value can be substituted into the above related pseudo code for calculating the target variables refL[x][y], refT[x][y], wT[y] and wL[x] to obtain the target variables.
[0121] Furthermore, the coordinates of the target variable and the predicted samples are substituted into the associated pseudo code for correcting the predicted samples to obtain the corrected predicted samples.
[0122] Optionally, the step of using the target variable to modify the prediction samples comprises: adjusting the target variable by applying a linear interpolation filter to the target reference samples; and correcting the prediction samples using the adjusted target variable.
[0123] In this embodiment, a 2-tap linear interpolation filter is further introduced, and the value of the target variable can be adjusted by performing linear interpolation filter processing on the target reference sample.
[0124] First, the reference sample arrays mainRef[x] and sideRef[y] are determined. mainRef[x]=p[x][-1] sideRef[y]=p[-1][y]
[0125] Here, mainRef[x] is the coordinate where the prediction sample is mapped to the reference sample above the prediction block, and sideRef[y] is the coordinate where the prediction sample is mapped to the reference sample to the left of the prediction block.
[0126] Specifically, when the index corresponding to the first angle prediction mode is smaller than 18 and the scaling factor is equal to or greater than 0, the target variable can be calculated by the following pseudo code: dXPos[y]=((y+1)*invAngle+4)>>3 dXFrac[y]=dXPos[y]&63 dXInt[y]=dXPos[y]>>6 dX[x][y]=x+dXInt[y]
[0127] Here, the variable dXPos[y] is the position in the upper reconstructed image of the upper reference sample of the prediction block expressed with a positional accuracy of 1 / 64, the variable dXFrac[y] is the fractional part of the position in the upper reconstructed image of the upper reference sample of the prediction block expressed with a positional accuracy of 1 / 64, invAngle is the inverse angle value corresponding to the prediction block, dXInt[y] represents the offset value of the X-coordinate of the upper reference sample of the prediction block relative to the X-coordinate of the prediction sample, and the variable dX[x][y] is used to determine the position of the upper reference sample of the prediction block.
[0128] refL[x][y]=0 refT[x][y]=(y<(3<<nScale))?((64-dXFrac[y])*mainRef[dX[x][y]]+dXFrac[y]*mainRef[dX[x][y]+1]+32)> >6):0 wT[y]=32>>((y<1)>>nScale) wL[x]=0
[0129] where nScale is the scaling factor.
[0130] Specifically, when the index corresponding to the first angle prediction mode is greater than 50 and the scaling factor is greater than or equal to 0, the target variable can be calculated by the following pseudo code: dYPos[x]=((x+1)*invAngle+4)>>3 dYFrac[x]=dYPos[x]&63 dYInt[x]=dYPos[x]>>6 dY[x][y]=y+dYInt[x]
[0131] Here, the variable dYPos[x] is the position in the left reconstructed image of the left reference sample of the prediction block, expressed with a positional accuracy of 1 / 64, the variable dYFrac[x] is the fractional part of the position in the left reconstructed image of the left reference sample of the prediction block, expressed with a positional accuracy of 1 / 64, the variable dYInt[x] represents the offset value of the Y coordinate of the left reference sample of the prediction block relative to the Y coordinate of the prediction sample, the variable dY[x][y] is used to determine the position of the left reference sample of the prediction block, and invAngle is the inverse angle value corresponding to the prediction block.
[0132] refL[x][y]=(x<(3<<nScale))?((64-dYFrac[x])*sideRef[dY[x][y]]+dYFrac[x]*sideRef[dY[x][y]+1]+32)> >6):0 refT[x][y]=0 wT[y]=0 wL[x]=32>>((x<1)>>nScale)
[0133] where nScale is the scaling factor.
[0134] After obtaining the adjusted target variable, the adjusted target variable and the coordinates of the predicted sample are input into the associated pseudo code for modifying the predicted sample to obtain the modified predicted sample.
[0135] As shown in FIG. 7, the decoder 200 A first determination module 201 for determining a prediction sample corresponding to a prediction block according to an angular prediction mode corresponding to the prediction block; and a processing module 202 for modifying the prediction samples using a position dependent intra prediction combination (PDPC) to generate modified prediction samples.
[0136] Here, the processing module 202: an acquisition module 2021 for acquiring texture information of a reference sample set corresponding to a first angular prediction mode; a second determination module 2022 for determining a second angular prediction mode according to the texture information; and a correction module 2023 for correcting the prediction samples according to target reference samples corresponding to the second angular prediction mode.
[0137] Optionally, the acquisition module 2021 specifically includes: When the index corresponding to the first angular prediction mode is smaller than the first preset index, performing texture analysis on at least a portion of pixel points in a reconstructed image located above the prediction block and adjacent to the prediction block to obtain the texture information; If the index corresponding to the first angle prediction mode is greater than the second preset index, performing a texture analysis process on at least a portion of pixel points in the reconstructed image that are located to the left of the prediction block and adjacent to the prediction block to obtain the texture information.
[0138] Optionally, the acquisition module 2021 further specifically includes: When an index corresponding to a first angular prediction mode is smaller than a first preset index, obtaining the texture information based on an intra prediction mode corresponding to a decoded block located above and adjacent to the prediction block; If the index corresponding to the first angular prediction mode is greater than the second preset index, the texture information is obtained based on an intra prediction mode corresponding to a decoded block located to the left of the prediction block and adjacent to the prediction block.
[0139] Optionally, the correction module 2023 specifically: determining a scaling factor and a target inverse angle value according to a first predicted angle corresponding to the first angle prediction mode and a second predicted angle corresponding to the second angle prediction mode; and correcting the predicted sample using the target reference sample, the scaling factor, and the target inverse angle value.
[0140] Optionally, the correction module 2023 further specifically: determining the scaling factor using a first inverse angle value corresponding to the first angle prediction mode; determining the target inverse angle value according to the first angle prediction mode and the second angle prediction mode.
[0141] Optionally, the correction module 2023 further specifically: determining the target inverse angle value according to the first angle prediction mode and the second angle prediction mode; and determining the scaling factor using the target inverse angle value.
[0142] Optionally, the correction module 2023 further specifically: If the first angle prediction mode and the second angle prediction mode do not satisfy a preset condition, rounding a division result of a first preset value and a first offset value to obtain the target inverse angle value. and obtaining the target inverse angle value according to a second offset value and a second preset value when the first angle prediction mode and the second angle prediction mode satisfy a preset condition.
[0143] Optionally, the correction module 2023 further specifically: A left shift operation is performed on the second offset value and the second preset value to obtain the target inverse angle value.
[0144] Optionally, the correction module 2023 further specifically: performing a left shift operation on the second offset value and the second preset value to obtain a second inverse angle value; rounding a result of dividing the first preset value by the first offset value to obtain a third inverse angle value; performing a weighted addition process on the second inverse angle value and the third inverse angle value to determine the target inverse angle value.
[0145] Optionally, the correction module 2023 further specifically: using the target reference sample, the scaling factor, and the target inverse angle value to obtain a target variable; and correcting the predicted samples using the target variable.
[0146] Optionally, the correction module 2023 further specifically: adjusting the target variable by performing a linear interpolation filter operation on the target reference samples; and correcting the predicted samples using the adjusted target variable.
[0147] The decoder provided in the embodiment of the present application can implement each step implemented in the embodiment of the method of Fig. 4 and achieve the same technical effect, which will be omitted here to avoid repetition.
[0148] It should be noted that the intra prediction method provided in the embodiment of the present application may be performed by a decoder or a control module for performing the intra prediction method in the decoder. In the embodiment of the present application, the decoder provided in the embodiment of the present application will be described by taking the method in which the decoder performs intra prediction as an example.
[0149] In the embodiment of the present application, the second prediction angle is not obtained by adding or subtracting 180 degrees to the first prediction angle corresponding to the first angle prediction mode, but by obtaining texture information of a reference sample set corresponding to the first angle prediction mode, and determining a second angle prediction mode according to the texture information, and determining the prediction angle corresponding to the second angle prediction mode as the second prediction angle. Furthermore, the prediction sample is corrected according to a target reference sample corresponding to the second angle prediction mode, so that the prediction sample is corrected using the second angle prediction mode determined based on the texture information, thereby improving the accuracy of the corrected prediction sample.
[0150] The decoder in the embodiment of the present application may be a device, a device with an operating system, or an electronic device, or may be a component, integrated circuit, or chip in a terminal. The device or electronic device may be a portable terminal or a non-portable terminal. By way of example, the portable terminal may include, but is not limited to, the types of terminals 11 listed above, and the non-portable terminal may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an automated teller machine or a kiosk, etc., and is not specifically limited in the embodiment of the present application.
[0151] The decoder provided in the embodiment of the present application can implement each step implemented in the embodiment of the method of Fig. 4, and achieve the same technical effect, which will be omitted here to avoid repetition.
[0152] 8, an embodiment of the present application further provides a communication device 300, including a processor 301, a memory 302, and a program or command stored in the memory 302 and executable on the processor 301. For example, when the communication device 300 is a terminal, when the program or command is executed by the processor 301, each step of the embodiment of the intra prediction method described above can be realized, and similar technical effects can be achieved.
[0153] The embodiment of the terminal corresponds to the embodiment of the above-mentioned terminal-side method, and each implementation step and realization manner of the above-mentioned method embodiment can be applied to the embodiment of the terminal, and the same technical effects can be achieved. Specifically, FIG. 9 is a schematic diagram of the hardware structure of a terminal that realizes the embodiment of the present application.
[0154] The terminal 1000 includes components such as, but not limited to, a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
[0155] Those skilled in the art can understand that the terminal 1000 may further include a power source (e.g., a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 by a power management system, and the power management system may further realize functions such as charge / discharge management and power consumption management. The structure of the terminal shown in FIG. 9 does not limit the terminal, and the terminal may include more or fewer components than those shown, or a combination of some components, or a different component arrangement, and the description will be omitted here.
[0156] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 for processing image data of static or video captured by an image capture device (e.g., a camera) in a video capture mode or an image capture mode, and a microphone 10042. The display unit 1006 may include a display panel 10061, which may be arranged in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. The other input devices 10072 may include, but are not limited to, a physical keyboard, a function button (e.g., a volume control button, a switch button, etc.), a trackball, a mouse, and a control lever, and detailed description thereof is omitted here.
[0157] In the embodiment of the present application, the high frequency unit 1001 receives downlink data from the network side device, processes the data in the processor 1010, and transmits uplink data to the network side device. Typically, the high frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a receiver-transmitter, a coupler, a low-noise amplifier, a duplexer, etc.
[0158] The memory 1009 can be used to store software programs or commands and various data. The memory 1009 may mainly include an area for storing programs or commands and a data storage area, which can store an operating system, applications or commands required for at least one function (e.g., audio playback function, image playback function, etc.). The memory 1009 may also include a high-speed random access memory or a non-volatile memory, among which the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), or a flash memory. For example, at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device may be included.
[0159] The processor 1010 may include one or more processing units, and may optionally integrate an application processor that mainly processes an operating system, a user interface, applications, etc., and a modem processor that mainly processes wireless communications, such as a baseband processor, in the processor 1010. It is understandable that the modem processor may not be integrated into the processor 1010.
[0160] Here, the processor 1010 is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0161] An embodiment of the present application further provides a readable storage medium, which may be non-volatile or volatile, storing a program or command, which, when executed by a processor, implements each step of the embodiment of the intra prediction method.
[0162] The embodiment of the present application further provides a computer program product, which is stored in a non-transitory storage medium and is executed by at least one processor to realize each step of the embodiment of the intra prediction method described above, and can achieve the same technical effect. In order to avoid repetition, the description will be omitted here.
[0163] The embodiment of the present application also provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor executes a program or command to realize each step of the embodiment of the intra prediction method, and can achieve the same technical effect. In order to avoid repetition, the description will be omitted here.
[0164] It should be understood that the chips referred to in the embodiments of this application may be referred to as system level chips, system chips, chip systems, or systems on chips, and the like.
[0165] It should be noted that in this specification, the terms "comprise", "consist of" or any other variations are intended to include a non-exclusive inclusion, whereby a process, method, article, or apparatus that includes a set of elements includes not only those elements, but also other elements not expressly stated or inherent to such process, method, article, or apparatus. Unless otherwise specified, an element limited by the phrase "comprises a" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element. It should be noted that the scope of the method and apparatus in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may include performing functions substantially simultaneously or in the reverse order depending on such functions, for example, the described method may be performed in a different order than described, and various steps may be added, omitted, or combined. Also, features described with reference to any example may be combined in other examples.
[0166] From the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be realized in the form of a combination of software and a necessary common hardware platform, and of course, they can be realized by hardware, but in many cases the former is a more preferred embodiment. Based on this view, the technical solution of the present application can be substantially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM / RAM, magnetic disk, optical disk) and includes a number of commands that cause a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.
[0167] Although the examples of the present application have been described above with reference to the drawings, the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative and not limiting. Based on the suggestions of the present application, many forms that a person skilled in the art can make without departing from the spirit of the present application and the scope of protection of the claims are all within the scope of protection of the present application.
Claims
1. determining a prediction sample corresponding to the prediction block based on an angular prediction mode corresponding to the prediction block; and modifying the prediction samples using a position-dependent intra-prediction combination (PDPC) to generate modified prediction samples; The step of modifying the prediction samples using a position dependent intra prediction combination comprises: obtaining texture information of a reference sample set corresponding to a first angular prediction mode, the first angular prediction mode being an angular prediction mode corresponding to the prediction block, the reference sample set including at least one reference sample; determining a second angular prediction mode in response to the texture information; and modifying the prediction samples according to target reference samples corresponding to the second angular prediction mode.
2. The step of obtaining texture information of a reference sample set corresponding to a first angular prediction mode includes: performing texture analysis on at least a portion of pixel points in a reconstructed image located above the prediction block and adjacent to the prediction block when the index corresponding to the first angular prediction mode is smaller than a first preset index, to obtain the texture information; 2. The method of claim 1, further comprising: if the index corresponding to the first angular prediction mode is greater than the second preset index, performing a texture analysis process on at least a portion of pixel points in a reconstructed image that are located to the left of the prediction block and adjacent to the prediction block to obtain the texture information.
3. The step of obtaining texture information of a reference sample set corresponding to a first angular prediction mode includes: obtaining the texture information based on an intra prediction mode corresponding to a decoded block located above and adjacent to the prediction block when the index corresponding to the first angular prediction mode is smaller than a first preset index; 2. The method of claim 1, further comprising: if the index corresponding to the first angular prediction mode is greater than the second preset index, obtaining the texture information based on an intra prediction mode corresponding to a decoded block located to the left of the prediction block and adjacent to the prediction block.
4. The step of modifying the prediction samples according to target reference samples corresponding to the second angular prediction mode further comprises: determining a scaling factor and a target inverse angle value according to a first predicted angle corresponding to the first angle prediction mode and a second predicted angle corresponding to the second angle prediction mode; and modifying the predicted samples using the target reference samples, the scaling factor and the target inverse angle value.
5. determining a scaling factor and a target inverse angle value according to a first predicted angle corresponding to the first angle prediction mode and a second predicted angle corresponding to the second angle prediction mode, determining the scaling factor using a first inverse angle value corresponding to the first predicted angle; and determining the target inverse angle value in response to the first angle prediction mode and the second angle prediction mode.
6. determining a scaling factor and a target inverse angle value according to a first predicted angle corresponding to the first angle prediction mode and a second predicted angle corresponding to the second angle prediction mode, determining the target inverse angle value according to the first predicted angle and the second predicted angle; and using the target inverse angle value to determine the scaling factor.
7. The step of determining the target inverse angle value in accordance with the first predicted angle and the second predicted angle includes: rounding a division result of a first preset value and a first offset value to obtain the target inverse angle value when the first angle prediction mode and the second angle prediction mode do not satisfy a preset condition, where the first offset value corresponds to the first angle prediction mode; 7. The method according to claim 5 or 6, further comprising: when the first angle prediction mode and the second angle prediction mode satisfy a preset condition, obtaining the target inverse angle value according to a second offset value and a second preset value, wherein the second offset value corresponds to the second angle prediction mode.
8. The step of obtaining the target inverse angle value according to a second offset value and a second preset value includes:
8. The method of claim 7, further comprising performing a left shift operation on the second offset value and the second preset value to obtain the target inverse angle value.
9. The step of obtaining the target inverse angle value according to a second offset value and a second preset value includes: performing a left shift operation on the second offset value and the second preset value to obtain a second inverse angle value; rounding a result of dividing the first preset value by the first offset value to obtain a third inverse angle value; The method according to claim 7 , further comprising: performing a weighted addition process on the second inverse angle value and the third inverse angle value to determine the result as the target inverse angle value.
10. The preset conditions are: an index corresponding to a first angle prediction mode is smaller than a first preset index, an index corresponding to the first angle prediction mode is different from a third preset index, an index corresponding to a second angle prediction mode is larger than a second preset index, and a target scaling factor is equal to or larger than a third preset value, the third preset index is smaller than the first preset index, and the target scaling factor is a scaling factor calculated using a first inverse angle value or a scaling factor calculated using a target inverse angle value; and 8. The method of claim 7, comprising any one of: an index corresponding to a first angle prediction mode is greater than a second preset index, an index corresponding to a second angle prediction mode is less than the first preset index, an index corresponding to a second angle prediction mode is different from a third preset index, and the target scaling factor is greater than or equal to a third preset value.
11. The preset conditions are: an index corresponding to the first angle prediction mode is smaller than the first preset index, the index corresponding to the first angle prediction mode is different from a third preset index, and the target scaling factor is equal to or greater than a third preset value; and The method of claim 7 , comprising any one of: an index corresponding to a first angle prediction mode being greater than a second preset index; and the target scaling factor being greater than or equal to a third preset value.
12. said step of modifying said predicted samples using said target reference samples, said scaling factor and said target inverse angle value comprising: using the target reference sample, the scaling factor and the target inverse angle value to obtain a target variable; and using the target variable to modify the prediction sample.
13. The step of modifying the prediction samples using the target variable comprises: adjusting the target variable by applying a linear interpolation filter to the target reference samples; and correcting the prediction samples using the adjusted target variable.
14. a first determining module for determining a prediction sample corresponding to a prediction block according to an angular prediction mode corresponding to the prediction block; a processing module for modifying the prediction samples using a position dependent intra prediction combination (PDPC) to generate modified prediction samples; The processing module includes: an acquisition module for acquiring texture information of a reference sample set corresponding to a first angular prediction mode, the first angular prediction mode being an angular prediction mode characterized by an angular prediction mode corresponding to the prediction block, the reference sample set including at least one reference sample; a second determination module for determining a second angular prediction mode according to the texture information; a correction module for correcting the prediction samples according to target reference samples corresponding to the second angular prediction mode.
15. A terminal comprising a processor, a memory, and a program or command stored in the memory and executable on the processor, the program or command implementing steps of the intra prediction method according to any one of claims 1 to 13 when executed by the processor.
16. A readable storage medium having stored thereon a program or command which, when executed by a processor, causes the steps of the intra prediction method according to any one of claims 1 to 13 to be implemented.
17. A chip comprising a processor and a communication interface, the communication interface and the processor being coupled to execute a program or command to implement steps of the intra prediction method according to any one of claims 1 to 13.
18. A computer program product stored on a non-transitory readable storage medium and executed by at least one processor to implement the steps of the intra prediction method according to any one of claims 1 to 13.
19. A communication device configured to perform the steps of the intra prediction method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Video decoding method and device performing intra prediction, and video encoding method and device performing intra prediction
JP2018520549A
Method, apparatus and computer program for decoding using an integrated position-dependent prediction combination process
JP2022515850A
Unified position dependent prediction combination process
WO2020251791A1
