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
Sun Yucheng
VVCSoftware_VTM
Commits
3b6edd83
Commit
3b6edd83
authored
6 years ago
by
Yan Zhang
Committed by
Frank Bossen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
JVET-L0377 AMVR Rounding Align
parent
51ce2f5b
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/Mv.cpp
+5
-1
5 additions, 1 deletion
source/Lib/CommonLib/Mv.cpp
source/Lib/CommonLib/TypeDef.h
+2
-0
2 additions, 0 deletions
source/Lib/CommonLib/TypeDef.h
with
7 additions
and
1 deletion
source/Lib/CommonLib/Mv.cpp
+
5
−
1
View file @
3b6edd83
...
...
@@ -47,9 +47,13 @@ void roundMV( Mv & rMV, unsigned imvShift )
if
(
rMV
.
highPrec
)
imvShift
+=
VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE
;
#endif
int
offset
=
1
<<
(
imvShift
-
1
);
#if JVET_L0377_AMVR_ROUNDING_ALIGN
rMV
.
setHor
(
rMV
.
getHor
()
>=
0
?
((
rMV
.
getHor
()
+
offset
)
>>
imvShift
)
<<
imvShift
:
-
(((
-
rMV
.
getHor
()
+
offset
)
>>
imvShift
))
<<
imvShift
);
rMV
.
setVer
(
rMV
.
getVer
()
>=
0
?
((
rMV
.
getVer
()
+
offset
)
>>
imvShift
)
<<
imvShift
:
-
(((
-
rMV
.
getVer
()
+
offset
)
>>
imvShift
))
<<
imvShift
);
#else
rMV
.
setHor
(
(
(
rMV
.
getHor
()
+
offset
)
>>
imvShift
)
<<
imvShift
);
rMV
.
setVer
(
(
(
rMV
.
getVer
()
+
offset
)
>>
imvShift
)
<<
imvShift
);
#endif
}
void
roundAffineMv
(
int
&
mvx
,
int
&
mvy
,
int
nShift
)
...
...
This diff is collapsed.
Click to expand it.
source/Lib/CommonLib/TypeDef.h
+
2
−
0
View file @
3b6edd83
...
...
@@ -50,6 +50,8 @@
#include
<assert.h>
#include
<cassert>
#define JVET_L0377_AMVR_ROUNDING_ALIGN 1 // Align AMVR rounding for AMVP candidate
#define JVET_L0285_8BIT_TRANSFORM_CORE 1 // Primary transform using 8-bit cores
#define JVET_L0081_VPDU_SPLIT_CONSTRAINTS 1 // VPDU constraints for binary and ternary partitions
...
...
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