Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
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
Container Registry
Model registry
Operate
Environments
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
Frederic Barbier
VVCSoftware_VTM
Commits
91fc88b1
Commit
91fc88b1
authored
4 years ago
by
Frank Bossen
Browse files
Options
Downloads
Plain Diff
Merge branch 'subpic_bugfix_affine_mv_clip' into 'master'
Fix
#1004
: MV clipping bug for affine prediction, when using subpic See merge request
!1504
parents
0b94377c
0f8845f2
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
+12
-0
12 additions, 0 deletions
source/Lib/CommonLib/InterPrediction.cpp
with
12 additions
and
0 deletions
source/Lib/CommonLib/InterPrediction.cpp
+
12
−
0
View file @
91fc88b1
...
...
@@ -933,12 +933,14 @@ void InterPrediction::xPredAffineBlk(const ComponentID &compID, const Prediction
int
iMvScaleHor
=
mvLT
.
getHor
()
<<
iBit
;
int
iMvScaleVer
=
mvLT
.
getVer
()
<<
iBit
;
const
SPS
&
sps
=
*
pu
.
cs
->
sps
;
#if !JVET_O1143_MV_ACROSS_SUBPIC_BOUNDARY
const
int
iMvShift
=
4
;
const
int
iOffset
=
8
;
const
int
iHorMax
=
(
pu
.
cs
->
pps
->
getPicWidthInLumaSamples
()
+
iOffset
-
pu
.
Y
().
x
-
1
)
<<
iMvShift
;
const
int
iHorMin
=
(
-
(
int
)
pu
.
cs
->
pcv
->
maxCUWidth
-
iOffset
-
(
int
)
pu
.
Y
().
x
+
1
)
<<
iMvShift
;
const
int
iVerMax
=
(
pu
.
cs
->
pps
->
getPicHeightInLumaSamples
()
+
iOffset
-
pu
.
Y
().
y
-
1
)
<<
iMvShift
;
const
int
iVerMin
=
(
-
(
int
)
pu
.
cs
->
pcv
->
maxCUHeight
-
iOffset
-
(
int
)
pu
.
Y
().
y
+
1
)
<<
iMvShift
;
#endif
const
int
vFilterSize
=
isLuma
(
compID
)
?
NTAPS_LUMA
:
NTAPS_CHROMA
;
...
...
@@ -1134,8 +1136,14 @@ void InterPrediction::xPredAffineBlk(const ComponentID &compID, const Prediction
if
(
scalingRatio
==
SCALE_1X
)
#endif
{
#if JVET_O1143_MV_ACROSS_SUBPIC_BOUNDARY
clipMv
(
tmpMv
,
pu
.
lumaPos
(),
pu
.
lumaSize
(),
*
pu
.
cs
->
sps
,
*
pu
.
cs
->
pps
);
iMvScaleTmpHor
=
tmpMv
.
getHor
();
iMvScaleTmpVer
=
tmpMv
.
getVer
();
#else
iMvScaleTmpHor
=
std
::
min
<
int
>
(
iHorMax
,
std
::
max
<
int
>
(
iHorMin
,
iMvScaleTmpHor
));
iMvScaleTmpVer
=
std
::
min
<
int
>
(
iVerMax
,
std
::
max
<
int
>
(
iVerMin
,
iMvScaleTmpVer
));
#endif
}
}
}
...
...
@@ -1157,8 +1165,12 @@ void InterPrediction::xPredAffineBlk(const ComponentID &compID, const Prediction
if
(
scalingRatio
==
SCALE_1X
)
#endif
{
#if JVET_O1143_MV_ACROSS_SUBPIC_BOUNDARY
clipMv
(
curMv
,
pu
.
lumaPos
(),
pu
.
lumaSize
(),
*
pu
.
cs
->
sps
,
*
pu
.
cs
->
pps
);
#else
curMv
.
hor
=
std
::
min
<
int
>
(
iHorMax
,
std
::
max
<
int
>
(
iHorMin
,
curMv
.
hor
));
curMv
.
ver
=
std
::
min
<
int
>
(
iVerMax
,
std
::
max
<
int
>
(
iVerMin
,
curMv
.
ver
));
#endif
}
}
iMvScaleTmpHor
=
curMv
.
hor
;
...
...
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