Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VVCSoftware_VTM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
jvet
VVCSoftware_VTM
Commits
fb801351
Commit
fb801351
authored
Apr 01, 2019
by
Yi-Wen Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integration of N0332: MMVD Fix for LTRPs
parent
1a33f26e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
source/Lib/CommonLib/ContextModelling.cpp
source/Lib/CommonLib/ContextModelling.cpp
+32
-0
source/Lib/CommonLib/TypeDef.h
source/Lib/CommonLib/TypeDef.h
+2
-0
No files found.
source/Lib/CommonLib/ContextModelling.cpp
View file @
fb801351
...
...
@@ -447,11 +447,43 @@ void MergeCtx::setMmvdMergeCandiInfo(PredictionUnit& pu, int candIdx)
{
const
int
scale
=
PU
::
getDistScaleFactor
(
currPoc
,
poc0
,
currPoc
,
poc1
);
tempMv
[
1
]
=
tempMv
[
0
];
#if LTRP_MMVD_FIX
const
bool
bIsL0RefLongTerm
=
slice
.
getRefPic
(
REF_PIC_LIST_0
,
refList0
)
->
longTerm
;
const
bool
bIsL1RefLongTerm
=
slice
.
getRefPic
(
REF_PIC_LIST_1
,
refList1
)
->
longTerm
;
if
(
bIsL0RefLongTerm
||
bIsL1RefLongTerm
)
{
if
((
poc1
-
currPoc
)
*
(
poc0
-
currPoc
)
>
0
)
{
tempMv
[
0
]
=
tempMv
[
1
];
}
else
{
tempMv
[
0
].
set
(
-
1
*
tempMv
[
1
].
getHor
(),
-
1
*
tempMv
[
1
].
getVer
());
}
}
else
#endif
tempMv
[
0
]
=
tempMv
[
1
].
scaleMv
(
scale
);
}
else
{
const
int
scale
=
PU
::
getDistScaleFactor
(
currPoc
,
poc1
,
currPoc
,
poc0
);
#if LTRP_MMVD_FIX
const
bool
bIsL0RefLongTerm
=
slice
.
getRefPic
(
REF_PIC_LIST_0
,
refList0
)
->
longTerm
;
const
bool
bIsL1RefLongTerm
=
slice
.
getRefPic
(
REF_PIC_LIST_1
,
refList1
)
->
longTerm
;
if
(
bIsL0RefLongTerm
||
bIsL1RefLongTerm
)
{
if
((
poc1
-
currPoc
)
*
(
poc0
-
currPoc
)
>
0
)
{
tempMv
[
1
]
=
tempMv
[
0
];
}
else
{
tempMv
[
1
].
set
(
-
1
*
tempMv
[
0
].
getHor
(),
-
1
*
tempMv
[
0
].
getVer
());
}
}
else
#endif
tempMv
[
1
]
=
tempMv
[
0
].
scaleMv
(
scale
);
}
...
...
source/Lib/CommonLib/TypeDef.h
View file @
fb801351
...
...
@@ -50,6 +50,8 @@
#include <assert.h>
#include <cassert>
#define LTRP_MMVD_FIX 1 // MMVD scaling considering LTRPs from N0332
#define JCTVC_Y0038_PARAMS 1
#define JVET_MMVD_OFF_MACRO 0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment