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
11
Merge Requests
11
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
6cc5674c
Commit
6cc5674c
authored
Jan 18, 2019
by
Karsten Suehring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove macro JVET_L0265_AFF_MINIMUM4X4
parent
75da51bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
31 deletions
+0
-31
source/Lib/CommonLib/InterPrediction.cpp
source/Lib/CommonLib/InterPrediction.cpp
+0
-28
source/Lib/CommonLib/InterPrediction.h
source/Lib/CommonLib/InterPrediction.h
+0
-2
source/Lib/CommonLib/TypeDef.h
source/Lib/CommonLib/TypeDef.h
+0
-1
No files found.
source/Lib/CommonLib/InterPrediction.cpp
View file @
6cc5674c
...
@@ -55,9 +55,7 @@ InterPrediction::InterPrediction()
...
@@ -55,9 +55,7 @@ InterPrediction::InterPrediction()
m_currChromaFormat
(
NUM_CHROMA_FORMAT
)
m_currChromaFormat
(
NUM_CHROMA_FORMAT
)
,
m_maxCompIDToPred
(
MAX_NUM_COMPONENT
)
,
m_maxCompIDToPred
(
MAX_NUM_COMPONENT
)
,
m_pcRdCost
(
nullptr
)
,
m_pcRdCost
(
nullptr
)
#if JVET_L0265_AFF_MINIMUM4X4
,
m_storedMv
(
nullptr
)
,
m_storedMv
(
nullptr
)
#endif
#if JVET_L0256_BIO
#if JVET_L0256_BIO
,
m_gradX0
(
nullptr
)
,
m_gradX0
(
nullptr
)
,
m_gradY0
(
nullptr
)
,
m_gradY0
(
nullptr
)
...
@@ -122,13 +120,11 @@ void InterPrediction::destroy()
...
@@ -122,13 +120,11 @@ void InterPrediction::destroy()
m_triangleBuf
.
destroy
();
m_triangleBuf
.
destroy
();
#if JVET_L0265_AFF_MINIMUM4X4
if
(
m_storedMv
!=
nullptr
)
if
(
m_storedMv
!=
nullptr
)
{
{
delete
[]
m_storedMv
;
delete
[]
m_storedMv
;
m_storedMv
=
nullptr
;
m_storedMv
=
nullptr
;
}
}
#endif
#if JVET_L0256_BIO
#if JVET_L0256_BIO
xFree
(
m_gradX0
);
m_gradX0
=
nullptr
;
xFree
(
m_gradX0
);
m_gradX0
=
nullptr
;
...
@@ -194,13 +190,11 @@ void InterPrediction::init( RdCost* pcRdCost, ChromaFormat chromaFormatIDC )
...
@@ -194,13 +190,11 @@ void InterPrediction::init( RdCost* pcRdCost, ChromaFormat chromaFormatIDC )
m_if
.
initInterpolationFilter
(
true
);
m_if
.
initInterpolationFilter
(
true
);
#endif
#endif
#if JVET_L0265_AFF_MINIMUM4X4
if
(
m_storedMv
==
nullptr
)
if
(
m_storedMv
==
nullptr
)
{
{
const
int
MVBUFFER_SIZE
=
MAX_CU_SIZE
/
MIN_PU_SIZE
;
const
int
MVBUFFER_SIZE
=
MAX_CU_SIZE
/
MIN_PU_SIZE
;
m_storedMv
=
new
Mv
[
MVBUFFER_SIZE
*
MVBUFFER_SIZE
];
m_storedMv
=
new
Mv
[
MVBUFFER_SIZE
*
MVBUFFER_SIZE
];
}
}
#endif
}
}
bool
checkIdenticalMotion
(
const
PredictionUnit
&
pu
,
bool
checkAffine
)
bool
checkIdenticalMotion
(
const
PredictionUnit
&
pu
,
bool
checkAffine
)
...
@@ -754,14 +748,12 @@ void InterPrediction::xPredAffineBlk( const ComponentID& compID, const Predictio
...
@@ -754,14 +748,12 @@ void InterPrediction::xPredAffineBlk( const ComponentID& compID, const Predictio
blockWidth
>>=
iScaleX
;
blockWidth
>>=
iScaleX
;
blockHeight
>>=
iScaleY
;
blockHeight
>>=
iScaleY
;
#if JVET_L0265_AFF_MINIMUM4X4
blockWidth
=
std
::
max
(
blockWidth
,
AFFINE_MIN_BLOCK_SIZE
);
blockWidth
=
std
::
max
(
blockWidth
,
AFFINE_MIN_BLOCK_SIZE
);
blockHeight
=
std
::
max
(
blockHeight
,
AFFINE_MIN_BLOCK_SIZE
);
blockHeight
=
std
::
max
(
blockHeight
,
AFFINE_MIN_BLOCK_SIZE
);
CHECK
(
blockWidth
>
(
width
>>
iScaleX
),
"Sub Block width > Block width"
);
CHECK
(
blockWidth
>
(
width
>>
iScaleX
),
"Sub Block width > Block width"
);
CHECK
(
blockHeight
>
(
height
>>
iScaleX
),
"Sub Block height > Block height"
);
CHECK
(
blockHeight
>
(
height
>>
iScaleX
),
"Sub Block height > Block height"
);
const
int
MVBUFFER_SIZE
=
MAX_CU_SIZE
/
MIN_PU_SIZE
;
const
int
MVBUFFER_SIZE
=
MAX_CU_SIZE
/
MIN_PU_SIZE
;
#endif
const
int
cxWidth
=
width
>>
iScaleX
;
const
int
cxWidth
=
width
>>
iScaleX
;
const
int
cxHeight
=
height
>>
iScaleY
;
const
int
cxHeight
=
height
>>
iScaleY
;
...
@@ -804,7 +796,6 @@ void InterPrediction::xPredAffineBlk( const ComponentID& compID, const Predictio
...
@@ -804,7 +796,6 @@ void InterPrediction::xPredAffineBlk( const ComponentID& compID, const Predictio
for
(
int
w
=
0
;
w
<
cxWidth
;
w
+=
blockWidth
)
for
(
int
w
=
0
;
w
<
cxWidth
;
w
+=
blockWidth
)
{
{
#if JVET_L0265_AFF_MINIMUM4X4
int
iMvScaleTmpHor
,
iMvScaleTmpVer
;
int
iMvScaleTmpHor
,
iMvScaleTmpVer
;
if
(
compID
==
COMPONENT_Y
)
if
(
compID
==
COMPONENT_Y
)
{
{
...
@@ -844,25 +835,6 @@ void InterPrediction::xPredAffineBlk( const ComponentID& compID, const Predictio
...
@@ -844,25 +835,6 @@ void InterPrediction::xPredAffineBlk( const ComponentID& compID, const Predictio
iMvScaleTmpHor
=
curMv
.
hor
;
iMvScaleTmpHor
=
curMv
.
hor
;
iMvScaleTmpVer
=
curMv
.
ver
;
iMvScaleTmpVer
=
curMv
.
ver
;
}
}
#else
int
iMvScaleTmpHor
=
iMvScaleHor
+
iDMvHorX
*
(
iHalfBW
+
w
)
+
iDMvVerX
*
(
iHalfBH
+
h
);
int
iMvScaleTmpVer
=
iMvScaleVer
+
iDMvHorY
*
(
iHalfBW
+
w
)
+
iDMvVerY
*
(
iHalfBH
+
h
);
roundAffineMv
(
iMvScaleTmpHor
,
iMvScaleTmpVer
,
shift
);
// clip and scale
if
(
sps
.
getUseWrapAround
())
{
Mv
tmpMv
(
iMvScaleTmpHor
,
iMvScaleTmpVer
);
clipMv
(
tmpMv
,
Position
(
pu
.
Y
().
x
+
(
w
<<
iScaleX
),
pu
.
Y
().
y
+
(
h
<<
iScaleY
)),
Size
(
blockWidth
<<
iScaleX
,
blockHeight
<<
iScaleY
),
sps
);
iMvScaleTmpHor
=
tmpMv
.
getHor
();
iMvScaleTmpVer
=
tmpMv
.
getVer
();
}
else
{
iMvScaleTmpHor
=
std
::
min
<
int
>
(
iHorMax
,
std
::
max
<
int
>
(
iHorMin
,
iMvScaleTmpHor
)
);
iMvScaleTmpVer
=
std
::
min
<
int
>
(
iVerMax
,
std
::
max
<
int
>
(
iVerMin
,
iMvScaleTmpVer
)
);
}
#endif
// get the MV in high precision
// get the MV in high precision
int
xFrac
,
yFrac
,
xInt
,
yInt
;
int
xFrac
,
yFrac
,
xInt
,
yInt
;
...
...
source/Lib/CommonLib/InterPrediction.h
View file @
6cc5674c
...
@@ -92,9 +92,7 @@ protected:
...
@@ -92,9 +92,7 @@ protected:
int
m_iRefListIdx
;
int
m_iRefListIdx
;
PelStorage
m_triangleBuf
;
PelStorage
m_triangleBuf
;
#if JVET_L0265_AFF_MINIMUM4X4
Mv
*
m_storedMv
;
Mv
*
m_storedMv
;
#endif
#if JVET_L0256_BIO
#if JVET_L0256_BIO
Pel
*
m_gradX0
;
Pel
*
m_gradX0
;
...
...
source/Lib/CommonLib/TypeDef.h
View file @
6cc5674c
...
@@ -61,7 +61,6 @@
...
@@ -61,7 +61,6 @@
#define JVET_L0265_AFF_MINIMUM4X4 1 //Affine 4x4 chroma subblock
#define JVET_L0111 1 // Max Tx size for skip
#define JVET_L0111 1 // Max Tx size for skip
#define JVET_L0209_PCM 1 // PCM mode
#define JVET_L0209_PCM 1 // PCM mode
...
...
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