Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
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
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
VVCSoftware_VTM
Commits
e3196e60
Commit
e3196e60
authored
6 years ago
by
Xiang Li
Browse files
Options
Downloads
Patches
Plain Diff
cleaning on table m_dstMvPrecision
parent
5f68dfee
No related branches found
No related tags found
1 merge request
!140
Explicitly change MV precision
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/Lib/CommonLib/Mv.cpp
+1
-1
1 addition, 1 deletion
source/Lib/CommonLib/Mv.cpp
source/Lib/CommonLib/Mv.h
+3
-4
3 additions, 4 deletions
source/Lib/CommonLib/Mv.h
with
4 additions
and
5 deletions
source/Lib/CommonLib/Mv.cpp
+
1
−
1
View file @
e3196e60
...
...
@@ -40,7 +40,7 @@
#include
"Common.h"
#include
"Slice.h"
const
MvPrecision
Mv
::
m_
dstMv
Precision
[
3
]
=
{
MV_PRECISION_QUARTER
,
MV_PRECISION_INT
,
MV_PRECISION_4PEL
};
const
MvPrecision
Mv
::
m_
amvr
Precision
[
3
]
=
{
MV_PRECISION_QUARTER
,
MV_PRECISION_INT
,
MV_PRECISION_4PEL
};
// for cu.imv=0, 1 and 2
void
roundAffineMv
(
int
&
mvx
,
int
&
mvy
,
int
nShift
)
{
...
...
This diff is collapsed.
Click to expand it.
source/Lib/CommonLib/Mv.h
+
3
−
4
View file @
e3196e60
...
...
@@ -59,7 +59,7 @@ enum MvPrecision
class
Mv
{
private:
static
const
MvPrecision
m_
dstMv
Precision
[
3
];
static
const
MvPrecision
m_
amvr
Precision
[
3
];
public:
int
hor
;
///< horizontal component of motion vector
...
...
@@ -188,7 +188,7 @@ public:
void
changePrecisionAmvr
(
const
int
amvr
,
const
MvPrecision
&
dst
)
{
changePrecision
(
m_
dstMv
Precision
[
amvr
],
dst
);
changePrecision
(
m_
amvr
Precision
[
amvr
],
dst
);
}
void
roundToPrecision
(
const
MvPrecision
&
src
,
const
MvPrecision
&
dst
)
...
...
@@ -199,8 +199,7 @@ public:
void
roundToAmvrSignalPrecision
(
const
MvPrecision
&
src
,
const
int
amvr
)
{
static
const
MvPrecision
dstMvPrecision
[
3
]
=
{
MV_PRECISION_QUARTER
,
MV_PRECISION_INT
,
MV_PRECISION_4PEL
};
roundToPrecision
(
src
,
dstMvPrecision
[
amvr
]);
roundToPrecision
(
src
,
m_amvrPrecision
[
amvr
]);
}
};
// END CLASS DEFINITION MV
...
...
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