Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Johannes Sauer
VVCSoftware_BMS
Commits
dc921d63
Commit
dc921d63
authored
Oct 11, 2018
by
Johannes Sauer
Browse files
added REMOVE_MV_ADAPT_PREC for CPR/IBC
parent
c180eab1
Pipeline
#134
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
source/Lib/CommonLib/dtrace_blockstatistics.cpp
View file @
dc921d63
...
...
@@ -942,7 +942,12 @@ void writeAllCodedData(const CodingStructure & cs, const UnitArea & ctuArea)
const
CompArea
lumaArea
=
CompArea
(
COMPONENT_Y
,
pu
.
chromaFormat
,
pu
.
Cb
().
lumaPos
(),
recalcSize
(
pu
.
chromaFormat
,
CHANNEL_TYPE_CHROMA
,
CHANNEL_TYPE_LUMA
,
pu
.
Cb
().
size
()));
const
MotionInfo
&
curMi
=
pu
.
cs
->
picture
->
cs
->
getMotionInfo
(
Position
{
lumaArea
.
x
,
lumaArea
.
y
});
Mv
bv
=
curMi
.
mv
[
0
];
bv
.
setLowPrec
();
#if REMOVE_MV_ADAPT_PREC
bv
.
hor
=
bv
.
hor
>=
0
?
(
bv
.
hor
+
nOffset
)
>>
nShift
:
-
((
-
bv
.
hor
+
nOffset
)
>>
nShift
);
bv
.
ver
=
bv
.
ver
>=
0
?
(
bv
.
ver
+
nOffset
)
>>
nShift
:
-
((
-
bv
.
ver
+
nOffset
)
>>
nShift
);
#else
bv
.
setLowPrec
();
#endif
bv
.
hor
=
bv
.
hor
>>
::
getChannelTypeScaleX
(
ChannelType
(
chType
),
cu
.
chromaFormat
);
bv
.
ver
=
bv
.
ver
>>
::
getChannelTypeScaleY
(
ChannelType
(
chType
),
cu
.
chromaFormat
);
DTRACE_BLOCK_VECTOR_CHROMA
(
g_trace_ctx
,
D_BLOCK_STATISTICS_CODED
,
pu
,
GetBlockStatisticName
(
BlockStatistic
::
IBC_BV_Chroma
),
bv
.
hor
,
bv
.
ver
);
...
...
Write
Preview
Supports
Markdown
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