Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
Manage
Activity
Members
Labels
Plan
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
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
jvet-tuc
VVCSoftware_VTM
Commits
e39b7c5a
Commit
e39b7c5a
authored
5 years ago
by
Yi-Wen Chen
Browse files
Options
Downloads
Patches
Plain Diff
Integration for N0332:MMVD scaling issue for LTRPs
parent
1a33f26e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/Lib/CommonLib/ContextModelling.cpp
+32
-0
32 additions, 0 deletions
source/Lib/CommonLib/ContextModelling.cpp
source/Lib/CommonLib/TypeDef.h
+2
-0
2 additions, 0 deletions
source/Lib/CommonLib/TypeDef.h
with
34 additions
and
0 deletions
source/Lib/CommonLib/ContextModelling.cpp
+
32
−
0
View file @
e39b7c5a
...
@@ -447,11 +447,43 @@ void MergeCtx::setMmvdMergeCandiInfo(PredictionUnit& pu, int candIdx)
...
@@ -447,11 +447,43 @@ void MergeCtx::setMmvdMergeCandiInfo(PredictionUnit& pu, int candIdx)
{
{
const
int
scale
=
PU
::
getDistScaleFactor
(
currPoc
,
poc0
,
currPoc
,
poc1
);
const
int
scale
=
PU
::
getDistScaleFactor
(
currPoc
,
poc0
,
currPoc
,
poc1
);
tempMv
[
1
]
=
tempMv
[
0
];
tempMv
[
1
]
=
tempMv
[
0
];
#if MMVD_LTRP
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
);
tempMv
[
0
]
=
tempMv
[
1
].
scaleMv
(
scale
);
}
}
else
else
{
{
const
int
scale
=
PU
::
getDistScaleFactor
(
currPoc
,
poc1
,
currPoc
,
poc0
);
const
int
scale
=
PU
::
getDistScaleFactor
(
currPoc
,
poc1
,
currPoc
,
poc0
);
#if MMVD_LTRP
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
);
tempMv
[
1
]
=
tempMv
[
0
].
scaleMv
(
scale
);
}
}
...
...
This diff is collapsed.
Click to expand it.
source/Lib/CommonLib/TypeDef.h
+
2
−
0
View file @
e39b7c5a
...
@@ -50,6 +50,8 @@
...
@@ -50,6 +50,8 @@
#include
<assert.h>
#include
<assert.h>
#include
<cassert>
#include
<cassert>
#define MMVD_LTRP 1 // MVD scaling for MMVD considering LTRP from JVET-N0332
#define JCTVC_Y0038_PARAMS 1
#define JCTVC_Y0038_PARAMS 1
#define JVET_MMVD_OFF_MACRO 0
#define JVET_MMVD_OFF_MACRO 0
...
...
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