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
16
Merge Requests
16
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
d020b360
Commit
d020b360
authored
Dec 07, 2018
by
rlliao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ticket
#130
Incorrect scaling operation in triangle list derivation
parent
d6e7c8ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
source/Lib/CommonLib/UnitTools.cpp
source/Lib/CommonLib/UnitTools.cpp
+5
-1
No files found.
source/Lib/CommonLib/UnitTools.cpp
View file @
d020b360
...
...
@@ -4980,7 +4980,11 @@ void PU::getTriangleMergeCandidates( const PredictionUnit &pu, MergeCtx& triangl
int32_t
refPicPocL0
=
slice
.
getRefPOC
(
REF_PIC_LIST_0
,
candidate
[
i
].
refIdx
[
0
]);
int32_t
refPicPocL1
=
slice
.
getRefPOC
(
REF_PIC_LIST_1
,
candidate
[
i
].
refIdx
[
1
]);
Mv
aveMv
=
candidate
[
i
].
mv
[
1
];
aveMv
=
aveMv
.
scaleMv
(
xGetDistScaleFactor
(
curPicPoc
,
refPicPocL0
,
curPicPoc
,
refPicPocL1
)
);
// scaling to L0
int32_t
distscale
=
xGetDistScaleFactor
(
curPicPoc
,
refPicPocL0
,
curPicPoc
,
refPicPocL1
);
if
(
distscale
!=
4096
)
{
aveMv
=
aveMv
.
scaleMv
(
distscale
);
// scaling to L0
}
aveMv
.
setHor
(
(
aveMv
.
getHor
()
+
candidate
[
i
].
mv
[
0
].
getHor
()
+
1
)
>>
1
);
aveMv
.
setVer
(
(
aveMv
.
getVer
()
+
candidate
[
i
].
mv
[
0
].
getVer
()
+
1
)
>>
1
);
...
...
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