Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ECM
ECM
Commits
1b1bf036
Commit
1b1bf036
authored
5 years ago
by
Takeshi Chujoh
Browse files
Options
Downloads
Patches
Plain Diff
Tichet #313 A bugfix of BDOF condition
parent
4c8c6985
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/Lib/CommonLib/InterPrediction.cpp
+22
-3
22 additions, 3 deletions
source/Lib/CommonLib/InterPrediction.cpp
with
22 additions
and
3 deletions
source/Lib/CommonLib/InterPrediction.cpp
+
22
−
3
View file @
1b1bf036
...
@@ -1314,6 +1314,17 @@ void InterPrediction::motionCompensation( PredictionUnit &pu, PelUnitBuf &predBu
...
@@ -1314,6 +1314,17 @@ void InterPrediction::motionCompensation( PredictionUnit &pu, PelUnitBuf &predBu
{
{
#if JVET_N0178_IMPLICIT_BDOF_SPLIT
#if JVET_N0178_IMPLICIT_BDOF_SPLIT
#if JVET_N0266_SMALL_BLOCKS
CHECK
(
!
pu
.
cu
->
affine
&&
pu
.
refIdx
[
0
]
>=
0
&&
pu
.
refIdx
[
1
]
>=
0
&&
(
pu
.
lwidth
()
+
pu
.
lheight
()
==
12
),
"invalid 4x8/8x4 bi-predicted blocks"
);
#endif
#if JVET_N0146_DMVR_BDOF_CONDITION
WPScalingParam
*
wp0
;
WPScalingParam
*
wp1
;
int
refIdx0
=
pu
.
refIdx
[
REF_PIC_LIST_0
];
int
refIdx1
=
pu
.
refIdx
[
REF_PIC_LIST_1
];
pu
.
cs
->
slice
->
getWpScaling
(
REF_PIC_LIST_0
,
refIdx0
,
wp0
);
pu
.
cs
->
slice
->
getWpScaling
(
REF_PIC_LIST_1
,
refIdx1
,
wp1
);
#endif
bool
bioApplied
=
false
;
bool
bioApplied
=
false
;
const
Slice
&
slice
=
*
pu
.
cs
->
slice
;
const
Slice
&
slice
=
*
pu
.
cs
->
slice
;
if
(
pu
.
cs
->
sps
->
getBDOFEnabledFlag
())
if
(
pu
.
cs
->
sps
->
getBDOFEnabledFlag
())
...
@@ -1325,12 +1336,20 @@ void InterPrediction::motionCompensation( PredictionUnit &pu, PelUnitBuf &predBu
...
@@ -1325,12 +1336,20 @@ void InterPrediction::motionCompensation( PredictionUnit &pu, PelUnitBuf &predBu
}
}
else
else
{
{
#if JVET_N0146_DMVR_BDOF_CONDITION
const
bool
biocheck0
=
!
((
wp0
[
COMPONENT_Y
].
bPresentFlag
||
wp1
[
COMPONENT_Y
].
bPresentFlag
)
&&
slice
.
getSliceType
()
==
B_SLICE
);
#else
const
bool
biocheck0
=
!
(
pps
.
getWPBiPred
()
&&
slice
.
getSliceType
()
==
B_SLICE
);
const
bool
biocheck0
=
!
(
pps
.
getWPBiPred
()
&&
slice
.
getSliceType
()
==
B_SLICE
);
#endif
const
bool
biocheck1
=
!
(
pps
.
getUseWP
()
&&
slice
.
getSliceType
()
==
P_SLICE
);
const
bool
biocheck1
=
!
(
pps
.
getUseWP
()
&&
slice
.
getSliceType
()
==
P_SLICE
);
if
(
biocheck0
if
(
biocheck0
&&
biocheck1
&&
biocheck1
&&
PU
::
isBiPredFromDifferentDir
(
pu
)
&&
PU
::
isBiPredFromDifferentDir
(
pu
)
#if JVET_N0266_SMALL_BLOCKS
&&
pu
.
Y
().
height
!=
4
#else
&&
!
(
pu
.
Y
().
height
==
4
||
(
pu
.
Y
().
width
==
4
&&
pu
.
Y
().
height
==
8
))
&&
!
(
pu
.
Y
().
height
==
4
||
(
pu
.
Y
().
width
==
4
&&
pu
.
Y
().
height
==
8
))
#endif
)
)
{
{
bioApplied
=
true
;
bioApplied
=
true
;
...
@@ -1338,15 +1357,15 @@ void InterPrediction::motionCompensation( PredictionUnit &pu, PelUnitBuf &predBu
...
@@ -1338,15 +1357,15 @@ void InterPrediction::motionCompensation( PredictionUnit &pu, PelUnitBuf &predBu
}
}
if
(
bioApplied
&&
pu
.
cu
->
smvdMode
)
if
(
bioApplied
&&
pu
.
cu
->
smvdMode
)
{
{
bioApplied
=
false
;
bioApplied
=
false
;
}
}
if
(
pu
.
cu
->
cs
->
sps
->
getUseGBi
()
&&
bioApplied
&&
pu
.
cu
->
GBiIdx
!=
GBI_DEFAULT
)
if
(
pu
.
cu
->
cs
->
sps
->
getUseGBi
()
&&
bioApplied
&&
pu
.
cu
->
GBiIdx
!=
GBI_DEFAULT
)
{
{
bioApplied
=
false
;
bioApplied
=
false
;
}
}
if
(
pu
.
mmvdEncOptMode
==
2
&&
pu
.
mmvdMergeFlag
)
if
(
pu
.
mmvdEncOptMode
==
2
&&
pu
.
mmvdMergeFlag
)
{
{
bioApplied
=
false
;
bioApplied
=
false
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment