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_BMS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jvet
VVCSoftware_BMS
Commits
5b93362a
Commit
5b93362a
authored
Sep 11, 2018
by
Xiaozhong Xu
Committed by
Frank Bossen
Sep 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cpr para seq fix
parent
3571143b
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
18 deletions
+34
-18
source/Lib/CommonLib/CodingStructure.cpp
source/Lib/CommonLib/CodingStructure.cpp
+1
-1
source/Lib/CommonLib/Slice.cpp
source/Lib/CommonLib/Slice.cpp
+5
-2
source/Lib/CommonLib/Slice.h
source/Lib/CommonLib/Slice.h
+7
-0
source/Lib/CommonLib/UnitTools.cpp
source/Lib/CommonLib/UnitTools.cpp
+1
-7
source/Lib/DecoderLib/DecLib.cpp
source/Lib/DecoderLib/DecLib.cpp
+7
-1
source/Lib/EncoderLib/EncCu.cpp
source/Lib/EncoderLib/EncCu.cpp
+1
-1
source/Lib/EncoderLib/EncGOP.cpp
source/Lib/EncoderLib/EncGOP.cpp
+7
-5
source/Lib/EncoderLib/EncSlice.cpp
source/Lib/EncoderLib/EncSlice.cpp
+5
-1
No files found.
source/Lib/CommonLib/CodingStructure.cpp
View file @
5b93362a
...
...
@@ -566,7 +566,7 @@ void CodingStructure::allocateVectorsAtPicLevel()
{
const
int
twice
=
(
#if JVET_K0076_CPR_DT
(
!
pcv
->
ISingleTree
&&
(
slice
->
isIntra
()
||
(
this
->
slice
->
getNumRefIdx
(
REF_PIC_LIST_0
)
==
1
&&
this
->
slice
->
getNumRefIdx
(
REF_PIC_LIST_1
)
==
0
&&
this
->
slice
->
getRefPOC
(
REF_PIC_LIST_0
,
0
)
==
this
->
slice
->
getPOC
()
)))
(
!
pcv
->
ISingleTree
&&
(
slice
->
isIntra
()
||
this
->
slice
->
getCprIsOnlyRefPic
(
)))
#else
!
pcv
->
ISingleTree
&&
slice
->
isIntra
()
#endif
...
...
source/Lib/CommonLib/Slice.cpp
View file @
5b93362a
...
...
@@ -136,6 +136,9 @@ Slice::Slice()
,
m_iProcessingStartTime
(
0
)
,
m_dProcessingTime
(
0
)
,
m_uiMaxBTSize
(
0
)
#if JVET_K0076_CPR
,
m_bCprIsOnlyRefPic
(
false
)
#endif
{
for
(
uint32_t
i
=
0
;
i
<
NUM_REF_PIC_LIST_01
;
i
++
)
{
...
...
@@ -2724,7 +2727,7 @@ void calculateParameterSetChangedFlag(bool &bChanged, const std::vector<uint8_t>
uint32_t
PreCalcValues
::
getValIdx
(
const
Slice
&
slice
,
const
ChannelType
chType
)
const
{
#if JVET_K0076_CPR_DT
return
(
slice
.
isIntra
()
||
(
slice
.
getNumRefIdx
(
REF_PIC_LIST_0
)
==
1
&&
slice
.
getNumRefIdx
(
REF_PIC_LIST_1
)
==
0
&&
slice
.
getRefPOC
(
REF_PIC_LIST_0
,
0
)
==
slice
.
getPOC
()
))
return
(
slice
.
isIntra
()
||
slice
.
getCprIsOnlyRefPic
(
))
?
(
ISingleTree
?
0
:
(
chType
<<
1
))
:
1
;
#else
return
slice
.
isIntra
()
?
(
ISingleTree
?
0
:
(
chType
<<
1
)
)
:
1
;
...
...
@@ -2744,7 +2747,7 @@ uint32_t PreCalcValues::getMinBtSize( const Slice &slice, const ChannelType chTy
uint32_t
PreCalcValues
::
getMaxBtSize
(
const
Slice
&
slice
,
const
ChannelType
chType
)
const
{
#if JVET_K0076_CPR_DT
return
((
!
slice
.
isIntra
()
&&
!
(
slice
.
getNumRefIdx
(
REF_PIC_LIST_0
)
==
1
&&
slice
.
getNumRefIdx
(
REF_PIC_LIST_1
)
==
0
&&
slice
.
getRefPOC
(
REF_PIC_LIST_0
,
0
)
==
slice
.
getPOC
())
)
return
((
!
slice
.
isIntra
()
&&
!
slice
.
getCprIsOnlyRefPic
()
)
||
isLuma
(
chType
)
||
ISingleTree
)
?
slice
.
getMaxBTSize
()
:
MAX_BT_SIZE_C
;
#else
return
(
!
slice
.
isIntra
()
||
isLuma
(
chType
)
||
ISingleTree
)
?
slice
.
getMaxBTSize
()
:
MAX_BT_SIZE_C
;
...
...
source/Lib/CommonLib/Slice.h
View file @
5b93362a
...
...
@@ -1839,6 +1839,9 @@ private:
clock_t
m_iProcessingStartTime
;
double
m_dProcessingTime
;
uint32_t
m_uiMaxBTSize
;
#if JVET_K0076_CPR
bool
m_bCprIsOnlyRefPic
;
#endif
#if JVET_K0371_ALF
AlfSliceParam
m_alfSliceParam
;
...
...
@@ -1959,6 +1962,10 @@ public:
void
setMaxBTSize
(
int
i
)
{
m_uiMaxBTSize
=
i
;
}
uint32_t
getMaxBTSize
()
const
{
return
m_uiMaxBTSize
;
}
#if JVET_K0076_CPR
bool
getCprIsOnlyRefPic
()
const
{
return
m_bCprIsOnlyRefPic
;
}
void
setCprIsOnlyRefPic
(
bool
b
)
{
m_bCprIsOnlyRefPic
=
b
;
}
#endif
#if JEM_TOOLS
bool
getUseLIC
()
const
{
return
m_UseLIC
;
}
...
...
source/Lib/CommonLib/UnitTools.cpp
View file @
5b93362a
...
...
@@ -243,13 +243,7 @@ bool CS::isDualITree( const CodingStructure &cs )
{
#if JVET_K0076_CPR_DT
// for I slice, or P slice with CPR is the only ref
return
(
cs
.
slice
->
isIntra
()
||
(
cs
.
slice
->
getNumRefIdx
(
REF_PIC_LIST_0
)
==
1
&&
cs
.
slice
->
getNumRefIdx
(
REF_PIC_LIST_1
)
==
0
&&
cs
.
slice
->
getRefPOC
(
REF_PIC_LIST_0
,
0
)
==
cs
.
slice
->
getPOC
()
)
)
&&
!
cs
.
pcv
->
ISingleTree
;
return
(
cs
.
slice
->
isIntra
()
||
cs
.
slice
->
getCprIsOnlyRefPic
())
&&
!
cs
.
pcv
->
ISingleTree
;
#else
return
cs
.
slice
->
isIntra
()
&&
!
cs
.
pcv
->
ISingleTree
;
#endif
...
...
source/Lib/DecoderLib/DecLib.cpp
View file @
5b93362a
...
...
@@ -1197,6 +1197,12 @@ bool DecLib::xDecodeSlice(InputNALUnit &nalu, int &iSkipFrame, int iPOCLastDispl
//---------------
pcSlice
->
setRefPOCList
();
#if JVET_K0076_CPR
if
(
pcSlice
->
getNumRefIdx
(
REF_PIC_LIST_0
)
==
1
&&
pcSlice
->
getNumRefIdx
(
REF_PIC_LIST_1
)
==
0
&&
pcSlice
->
getRefPOC
(
REF_PIC_LIST_0
,
0
)
==
pcSlice
->
getPOC
())
pcSlice
->
setCprIsOnlyRefPic
(
true
);
#endif
#if JEM_TOOLS
if
(
pcSlice
->
getSPS
()
->
getSpsNext
().
getUseBIO
()
)
...
...
source/Lib/EncoderLib/EncCu.cpp
View file @
5b93362a
...
...
@@ -411,7 +411,7 @@ void EncCu::compressCtu( CodingStructure& cs, const UnitArea& area, const unsign
if
(
!
cs
.
pcv
->
ISingleTree
&&
#if JVET_K0076_CPR_DT
(
cs
.
slice
->
isIntra
()
||
(
cs
.
slice
->
getNumRefIdx
(
REF_PIC_LIST_0
)
==
1
&&
cs
.
slice
->
getNumRefIdx
(
REF_PIC_LIST_1
)
==
0
&&
cs
.
slice
->
getRefPOC
(
REF_PIC_LIST_0
,
0
)
==
cs
.
slice
->
getPOC
()
))
(
cs
.
slice
->
isIntra
()
||
cs
.
slice
->
getCprIsOnlyRefPic
(
))
#else
cs
.
slice
->
isIntra
()
#endif
...
...
source/Lib/EncoderLib/EncGOP.cpp
View file @
5b93362a
...
...
@@ -1684,6 +1684,7 @@ void EncGOP::compressGOP( int iPOCLast, int iNumPicRcvd, PicList& rcListPic,
if
(
pcSlice
->
getSliceType
()
==
I_SLICE
&&
pcSlice
->
getSPS
()
->
getSpsNext
().
getIBCMode
())
{
pcSlice
->
setSliceType
(
P_SLICE
);
pcSlice
->
setCprIsOnlyRefPic
(
true
);
}
#endif
// Set the nal unit type
...
...
@@ -1889,7 +1890,11 @@ void EncGOP::compressGOP( int iPOCLast, int iNumPicRcvd, PicList& rcListPic,
if
(
m_pcCfg
->
getUseAMaxBT
()
)
{
if
(
!
pcSlice
->
isIntra
()
)
if
(
!
pcSlice
->
isIntra
()
#if JVET_K0076_CPR
&&
!
pcSlice
->
getCprIsOnlyRefPic
()
#endif
)
{
int
refLayer
=
pcSlice
->
getDepth
();
if
(
refLayer
>
9
)
refLayer
=
9
;
// Max layer is 10
...
...
@@ -2524,10 +2529,7 @@ void EncGOP::compressGOP( int iPOCLast, int iNumPicRcvd, PicList& rcListPic,
{
if
(
!
pcSlice
->
isIntra
()
#if JVET_K0076_CPR
&&
!
(
pcSlice
->
getNumRefIdx
(
REF_PIC_LIST_0
)
==
1
&&
pcSlice
->
getNumRefIdx
(
REF_PIC_LIST_1
)
==
0
&&
pcSlice
->
getRefPOC
(
REF_PIC_LIST_0
,
0
)
==
pcSlice
->
getPOC
())
&&
!
pcSlice
->
getCprIsOnlyRefPic
()
#endif
)
{
...
...
source/Lib/EncoderLib/EncSlice.cpp
View file @
5b93362a
...
...
@@ -1274,7 +1274,11 @@ void EncSlice::compressSlice( Picture* pcPic, const bool bCompressEntireSlice, c
#if JVET_K0346
if
(
pcSlice
->
getSPS
()
->
getSpsNext
().
getUseSubPuMvp
())
{
if
(
!
pcSlice
->
isIntra
())
if
(
!
pcSlice
->
isIntra
()
#if JVET_K0076_CPR
&&
!
pcSlice
->
getCprIsOnlyRefPic
()
#endif
)
{
if
(
pcSlice
->
getPOC
()
>
m_pcCuEncoder
->
getPrevPOC
()
&&
m_pcCuEncoder
->
getClearSubMergeStatic
())
{
...
...
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