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
e0037037
Commit
e0037037
authored
Apr 02, 2019
by
Tianyang Zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JVET-N0137: Intra chroma partitioning restriction
parent
1a33f26e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
source/Lib/CommonLib/CommonDef.h
source/Lib/CommonLib/CommonDef.h
+4
-1
source/Lib/CommonLib/TypeDef.h
source/Lib/CommonLib/TypeDef.h
+2
-0
source/Lib/CommonLib/UnitPartitioner.cpp
source/Lib/CommonLib/UnitPartitioner.cpp
+18
-4
No files found.
source/Lib/CommonLib/CommonDef.h
View file @
e0037037
...
...
@@ -359,7 +359,10 @@ static const int MIN_BT_SIZE_C = 4; ///<
static
const
int
MAX_TT_SIZE_INTER
=
64
;
///< for initialization, [1<<MIN_CU_LOG2, 64]
static
const
int
MIN_TT_SIZE_INTER
=
4
;
///<
#if JVET_N0137_DUALTREE_CHROMA_SIZE
static
const
int
MIN_DUALTREE_CHROMA_WIDTH
=
4
;
static
const
int
MIN_DUALTREE_CHROMA_SIZE
=
16
;
#endif
static
const
SplitSeries
SPLIT_BITS
=
5
;
static
const
SplitSeries
SPLIT_DMULT
=
5
;
static
const
SplitSeries
SPLIT_MASK
=
31
;
///< = (1 << SPLIT_BITS) - 1
...
...
source/Lib/CommonLib/TypeDef.h
View file @
e0037037
...
...
@@ -50,6 +50,8 @@
#include <assert.h>
#include <cassert>
#define JVET_N0137_DUALTREE_CHROMA_SIZE 1
#define JCTVC_Y0038_PARAMS 1
#define JVET_MMVD_OFF_MACRO 0
...
...
source/Lib/CommonLib/UnitPartitioner.cpp
View file @
e0037037
...
...
@@ -351,6 +351,9 @@ void QTBTPartitioner::canSplit( const CodingStructure &cs, bool& canNo, bool& ca
// the minimal and maximal sizes are given in luma samples
const
CompArea
&
area
=
currArea
().
Y
();
#if JVET_N0137_DUALTREE_CHROMA_SIZE
const
CompArea
&
areaC
=
currArea
().
Cb
();
#endif
PartLevel
&
level
=
m_partStack
.
back
();
const
PartSplit
lastSplit
=
level
.
split
;
...
...
@@ -359,7 +362,9 @@ void QTBTPartitioner::canSplit( const CodingStructure &cs, bool& canNo, bool& ca
// don't allow QT-splitting below a BT split
if
(
lastSplit
!=
CTU_LEVEL
&&
lastSplit
!=
CU_QUAD_SPLIT
)
canQt
=
false
;
if
(
area
.
width
<=
minQtSize
)
canQt
=
false
;
#if JVET_N0137_DUALTREE_CHROMA_SIZE
if
(
chType
==
CHANNEL_TYPE_CHROMA
&&
areaC
.
width
<=
MIN_DUALTREE_CHROMA_WIDTH
)
canQt
=
false
;
#endif
if
(
implicitSplit
!=
CU_DONT_SPLIT
)
{
canNo
=
canTh
=
canTv
=
false
;
...
...
@@ -397,17 +402,26 @@ void QTBTPartitioner::canSplit( const CodingStructure &cs, bool& canNo, bool& ca
// specific check for BT splits
if
(
area
.
height
<=
minBtSize
||
area
.
height
>
maxBtSize
)
canBh
=
false
;
if
(
area
.
width
>
MAX_TB_SIZEY
&&
area
.
height
<=
MAX_TB_SIZEY
)
canBh
=
false
;
#if JVET_N0137_DUALTREE_CHROMA_SIZE
if
(
chType
==
CHANNEL_TYPE_CHROMA
&&
areaC
.
width
*
areaC
.
height
<=
MIN_DUALTREE_CHROMA_SIZE
)
canBh
=
false
;
#endif
if
(
area
.
width
<=
minBtSize
||
area
.
width
>
maxBtSize
)
canBv
=
false
;
if
(
area
.
width
<=
MAX_TB_SIZEY
&&
area
.
height
>
MAX_TB_SIZEY
)
canBv
=
false
;
#if JVET_N0137_DUALTREE_CHROMA_SIZE
if
(
chType
==
CHANNEL_TYPE_CHROMA
&&
areaC
.
width
*
areaC
.
height
<=
MIN_DUALTREE_CHROMA_SIZE
)
canBv
=
false
;
#endif
if
(
area
.
height
<=
2
*
minTtSize
||
area
.
height
>
maxTtSize
||
area
.
width
>
maxTtSize
)
canTh
=
false
;
if
(
area
.
width
>
MAX_TB_SIZEY
||
area
.
height
>
MAX_TB_SIZEY
)
canTh
=
false
;
#if JVET_N0137_DUALTREE_CHROMA_SIZE
if
(
chType
==
CHANNEL_TYPE_CHROMA
&&
areaC
.
width
*
areaC
.
height
<=
MIN_DUALTREE_CHROMA_SIZE
*
2
)
canTh
=
false
;
#endif
if
(
area
.
width
<=
2
*
minTtSize
||
area
.
width
>
maxTtSize
||
area
.
height
>
maxTtSize
)
canTv
=
false
;
if
(
area
.
width
>
MAX_TB_SIZEY
||
area
.
height
>
MAX_TB_SIZEY
)
canTv
=
false
;
#if JVET_N0137_DUALTREE_CHROMA_SIZE
if
(
chType
==
CHANNEL_TYPE_CHROMA
&&
areaC
.
width
*
areaC
.
height
<=
MIN_DUALTREE_CHROMA_SIZE
*
2
)
canTv
=
false
;
#endif
}
bool
QTBTPartitioner
::
canSplit
(
const
PartSplit
split
,
const
CodingStructure
&
cs
)
...
...
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