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
Remy Foray
VVCSoftware_VTM
Commits
8fa61a05
Commit
8fa61a05
authored
6 years ago
by
Xiang Li
Browse files
Options
Downloads
Plain Diff
Merge branch 'Kenneth/VVCSoftware_VTM-JVET-L0074_subblock_deblocking'
parents
c4131230
271a4f12
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/Lib/CommonLib/LoopFilter.cpp
+43
-0
43 additions, 0 deletions
source/Lib/CommonLib/LoopFilter.cpp
source/Lib/CommonLib/TypeDef.h
+1
-10
1 addition, 10 deletions
source/Lib/CommonLib/TypeDef.h
with
44 additions
and
10 deletions
source/Lib/CommonLib/LoopFilter.cpp
+
43
−
0
View file @
8fa61a05
...
...
@@ -250,6 +250,10 @@ void LoopFilter::xDeblockCU( CodingUnit& cu, const DeblockEdgeDir edgeDir )
xSetEdgefilterMultiple
(
cu
,
EDGE_HOR
,
areaTu
,
m_stLFCUParam
.
internalEdge
);
}
#if L0074_SUBBLOCK_DEBLOCKING
bool
mvSubBlocks
=
false
;
int
subBlockSize
=
8
;
#endif
for
(
auto
&
currPU
:
CU
::
traversePUs
(
cu
)
)
{
const
Area
&
areaPu
=
cu
.
Y
().
valid
()
?
currPU
.
block
(
COMPONENT_Y
)
:
area
;
...
...
@@ -259,8 +263,31 @@ void LoopFilter::xDeblockCU( CodingUnit& cu, const DeblockEdgeDir edgeDir )
xSetEdgefilterMultiple
(
cu
,
EDGE_VER
,
areaPu
,
(
xOff
?
m_stLFCUParam
.
internalEdge
:
m_stLFCUParam
.
leftEdge
),
xOff
);
xSetEdgefilterMultiple
(
cu
,
EDGE_HOR
,
areaPu
,
(
yOff
?
m_stLFCUParam
.
internalEdge
:
m_stLFCUParam
.
topEdge
),
yOff
);
#if L0074_SUBBLOCK_DEBLOCKING
if
((
currPU
.
mergeFlag
&&
(
currPU
.
mergeType
==
MRG_TYPE_SUBPU_ATMVP
))
||
cu
.
affine
)
{
mvSubBlocks
=
true
;
if
(
edgeDir
==
EDGE_HOR
)
{
for
(
uint32_t
off
=
subBlockSize
;
off
<
areaPu
.
height
;
off
+=
subBlockSize
)
{
const
Area
mvBlockH
(
cu
.
Y
().
x
,
cu
.
Y
().
y
+
off
,
cu
.
Y
().
width
,
pcv
.
minCUHeight
);
xSetEdgefilterMultiple
(
cu
,
EDGE_HOR
,
mvBlockH
,
m_stLFCUParam
.
internalEdge
,
1
);
}
}
else
{
for
(
uint32_t
off
=
subBlockSize
;
off
<
areaPu
.
width
;
off
+=
subBlockSize
)
{
const
Area
mvBlockV
(
cu
.
Y
().
x
+
off
,
cu
.
Y
().
y
,
pcv
.
minCUWidth
,
cu
.
Y
().
height
);
xSetEdgefilterMultiple
(
cu
,
EDGE_VER
,
mvBlockV
,
m_stLFCUParam
.
internalEdge
,
1
);
}
}
}
#endif
}
#if !L0074_SUBBLOCK_DEBLOCKING
if
(
cu
.
affine
)
{
const
int
widthInBaseUnits
=
cu
.
Y
().
width
>>
pcv
.
minCUWidthLog2
;
...
...
@@ -276,6 +303,7 @@ void LoopFilter::xDeblockCU( CodingUnit& cu, const DeblockEdgeDir edgeDir )
xSetEdgefilterMultiple
(
cu
,
EDGE_HOR
,
affiBlockH
,
m_stLFCUParam
.
internalEdge
,
1
);
}
}
#endif
const
unsigned
uiPelsInPart
=
pcv
.
minCUWidth
;
for
(
int
y
=
0
;
y
<
area
.
height
;
y
+=
uiPelsInPart
)
...
...
@@ -316,12 +344,27 @@ void LoopFilter::xDeblockCU( CodingUnit& cu, const DeblockEdgeDir edgeDir )
if
(
cu
.
blocks
[
COMPONENT_Y
].
valid
())
{
#if L0074_SUBBLOCK_DEBLOCKING
if
(
mvSubBlocks
)
{
orthogonalIncrement
=
subBlockSize
/
4
;
orthogonalLength
=
(
edgeDir
==
EDGE_HOR
)
?
cu
.
blocks
[
COMPONENT_Y
].
height
/
4
:
cu
.
blocks
[
COMPONENT_Y
].
width
/
4
;
}
#endif
#if L0074_SUBBLOCK_DEBLOCKING
if
((
cu
.
blocks
[
COMPONENT_Y
].
height
>
64
)
&&
(
edgeDir
==
EDGE_HOR
)
&&
!
mvSubBlocks
)
#else
if
((
cu
.
blocks
[
COMPONENT_Y
].
height
>
64
)
&&
(
edgeDir
==
EDGE_HOR
))
#endif
{
orthogonalIncrement
=
64
/
4
;
orthogonalLength
=
cu
.
blocks
[
COMPONENT_Y
].
height
/
4
;
}
#if L0074_SUBBLOCK_DEBLOCKING
if
((
cu
.
blocks
[
COMPONENT_Y
].
width
>
64
)
&&
(
edgeDir
==
EDGE_VER
)
&&
!
mvSubBlocks
)
#else
if
((
cu
.
blocks
[
COMPONENT_Y
].
width
>
64
)
&&
(
edgeDir
==
EDGE_VER
))
#endif
{
orthogonalIncrement
=
64
/
4
;
orthogonalLength
=
cu
.
blocks
[
COMPONENT_Y
].
width
/
4
;
...
...
This diff is collapsed.
Click to expand it.
source/Lib/CommonLib/TypeDef.h
+
1
−
10
View file @
8fa61a05
...
...
@@ -73,16 +73,7 @@
#define JVET_L0274 1
#define JVET_L0274_ENCODER_SPEED_UP ( 1 && JVET_L0274 ) // encoder speed-up by pre-calculating position dependent parameters
#define L0074_SUBBLOCK_DEBLOCKING 1
#define JVET_L0646_GBI 1 // Generalized bi-prediction (GBi)
...
...
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