Method and apparatus for intra prediction
Apparatuses and methods for intra predicting a block are described. The method of intra predicting a current block can include obtaining a predicted sample value from one or more reference sample values by using an intra prediction mode, obtaining at least one additional reference sample value in accordance with the intra prediction mode, and obtaining a thresholded additional reference sample value based on the additional reference sample value. The method can also include calculating an additional value from the thresholded additional reference sample value, multiplying the predicted sample value by a sample weighting factor, resulting in a weighted predicted sample value, adding the additional value to the weighted predicted sample value, resulting in a non-normalized predicted sample value, and normalizing the non-normalized predicted sample value, resulting in a normalized predicted sample values. The accuracy for the intra prediction is thus increased.
1 . A method of intra predicting a block of a picture, comprising:
obtaining an intra prediction mode of a current block;
performing a clipping operation in position-dependent prediction combination (PDPC) when the intra prediction mode is horizontal intra prediction mode or vertical intra prediction mode, and wherein the clipping operation in PDPC is not performed when the intra prediction mode is DC mode or planar mode; and
performing PDPC based on a top sample or a left sample of the current block, and a top-left sample of the current block is not used for PDPC when the intra prediction mode is DC mode or planar mode.
2 . The method of claim 1 , wherein the clipping operation in PDPC is performed only when the intra prediction mode is the horizontal intra prediction mode or the vertical intra prediction mode.
3 . The method of claim 1 , when predModeIntra is equal to INTRA_ANGULAR18 or INTRA_ANGULAR50, the method further comprises applying:
predSamples
[
x
]
[
y
]
=
clip
1
Cmp
(
(
refL
[
x
]
[
y
]
*
wL
[
x
]
+
refT
[
x
]
[
y
]
*
wT
[
y
]
-
p
[
-
1
]
[
-
1
]
*
wTL
[
x
]
[
y
]
+
(
64
-
wL
[
x
]
-
wT
[
y
]
+
wTL
[
x
]
[
y
]
)
*
predSamples
[
x
]
[
y
]
+
32
)
≫
6
)
;
wherein predModeIntra indicates the intra prediction mode, {x,y} define position of a predicted sample, wT, wL and wTL are weights associated with reference samples in accordance with a defined position, refL[x][y] indicates a nearest reference sample located to a left of the predicted sample, refT[x][y] indicates a nearest reference sample located above the predicted sample, and p[−1][−1] indicates a top-left sample of the current block.
4 . The method of claim 1 , wherein when predModeIntra is not equal to INTRA_ANGULAR18 or INTRA_ANGULAR50, the method further comprises applying:
predSamples
[
x
]
[
y
]
=
(
refL
[
x
]
[
y
]
*
wL
[
x
]
+
refT
[
x
]
[
y
]
*
wT
[
y
]
+
(
64
-
wL
[
x
]
-
wT
[
y
]
)
*
predSamples
[
x
]
[
y
]
+
32
)
≫
6
;
wherein predModeIntra indicates the intra prediction mode, {x,y} define position of a predicted sample, wT and wL are weights associated with reference samples in accordance with a defined position, refL[x][y] indicates a nearest reference sample located to a left of the predicted sample, refT[x][y] indicates a nearest reference sample located above the predicted sample, and p[−1][−1] indicates a top-left sample of the current block.
5 . The method of claim 1 , wherein when predModeIntra is equal to INTRA_PLANAR or INTRA_DC, the method further comprises applying:
wT
[
y
]
=
32
≫
(
(
y
≪
1
)
≫
nScale
)
;
wL
[
x
]
=
32
≫
(
(
x
≪
1
)
≫
nScale
)
;
wTL
[
x
]
[
y
]
=
0
;
and
wherein predModeIntra indicates the intra prediction mode, {x,y} define position of a predicted sample, wT, wL and wTL are weights associated with reference samples in accordance with a defined position, and nScale is a scaling parameter.
6 . An apparatus, comprising:
one or more processors; and
a non-transitory computer-readable storage medium coupled to the one or more processors and storing programming for execution by the one or more processors, wherein the programming, when executed by the one or more processors, configures the apparatus to carry out the method according to claim 1 , where the apparatus is an encoder or a decoder.
7 . A non-transitory recording medium which includes one or more instructions, which when executed by one or more processors, cause the one or more processors to perform operations that generate a predictive-encoded bit stream decoded by an apparatus, the operations that generate the predictive-encoded bit stream are performed by the one or more processors according to the method of claim 1 .