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
14
Merge Requests
14
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
b618a762
Commit
b618a762
authored
Dec 12, 2018
by
Frank Bossen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JVET-L0449 Add POC signaling for IDR pictures
parent
dfd26227
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
source/Lib/CommonLib/TypeDef.h
source/Lib/CommonLib/TypeDef.h
+2
-0
source/Lib/DecoderLib/VLCReader.cpp
source/Lib/DecoderLib/VLCReader.cpp
+5
-0
source/Lib/EncoderLib/EncGOP.cpp
source/Lib/EncoderLib/EncGOP.cpp
+6
-0
source/Lib/EncoderLib/VLCWriter.cpp
source/Lib/EncoderLib/VLCWriter.cpp
+7
-0
No files found.
source/Lib/CommonLib/TypeDef.h
View file @
b618a762
...
...
@@ -141,6 +141,8 @@
#define JVET_L0362_QG_FIX 1 // QG is the node of qtDepth + mttDepth <= maxDqpDepth
#define JVET_L0362_QG_FIX_CU_REUSE 1 // fix bug on encoder cu coding info reusing fast algorithm (i.e., reuse cu info when having the same neighbor and the same qp)
#define JVET_L0449 1 // code POC value for IDRs
#ifndef JVET_B0051_NON_MPM_MODE
#define JVET_B0051_NON_MPM_MODE ( 1 && JEM_TOOLS )
#endif
...
...
source/Lib/DecoderLib/VLCReader.cpp
View file @
b618a762
...
...
@@ -1462,7 +1462,12 @@ void HLSyntaxReader::parseSliceHeader (Slice* pcSlice, ParameterSetManager *para
if
(
pcSlice
->
getIdrPicFlag
()
)
{
#if JVET_L0449
READ_CODE
(
sps
->
getBitsForPOC
(),
uiCode
,
"slice_pic_order_cnt_lsb"
);
pcSlice
->
setPOC
(
uiCode
);
#else
pcSlice
->
setPOC
(
0
);
#endif
ReferencePictureSet
*
rps
=
pcSlice
->
getLocalRPS
();
(
*
rps
)
=
ReferencePictureSet
();
pcSlice
->
setRPS
(
rps
);
...
...
source/Lib/EncoderLib/EncGOP.cpp
View file @
b618a762
...
...
@@ -1438,7 +1438,13 @@ void EncGOP::compressGOP( int iPOCLast, int iNumPicRcvd, PicList& rcListPic,
pcPic
->
fieldPic
=
isField
;
#endif
#if JVET_L0449
int
pocBits
=
pcSlice
->
getSPS
()
->
getBitsForPOC
();
int
pocMask
=
(
1
<<
pocBits
)
-
1
;
pcSlice
->
setLastIDR
(
m_iLastIDR
&
~
pocMask
);
#else
pcSlice
->
setLastIDR
(
m_iLastIDR
);
#endif
#if HEVC_DEPENDENT_SLICES
pcSlice
->
setSliceSegmentIdx
(
0
);
#endif
...
...
source/Lib/EncoderLib/VLCWriter.cpp
View file @
b618a762
...
...
@@ -1033,10 +1033,17 @@ void HLSWriter::codeSliceHeader ( Slice* pcSlice )
WRITE_FLAG
(
pcSlice
->
getPicOutputFlag
()
?
1
:
0
,
"pic_output_flag"
);
}
#if JVET_L0449
int
pocBits
=
pcSlice
->
getSPS
()
->
getBitsForPOC
();
int
pocMask
=
(
1
<<
pocBits
)
-
1
;
WRITE_CODE
(
pcSlice
->
getPOC
()
&
pocMask
,
pocBits
,
"slice_pic_order_cnt_lsb"
);
#endif
if
(
!
pcSlice
->
getIdrPicFlag
()
)
{
#if !JVET_L0449
int
picOrderCntLSB
=
(
pcSlice
->
getPOC
()
-
pcSlice
->
getLastIDR
()
+
(
1
<<
pcSlice
->
getSPS
()
->
getBitsForPOC
()
)
)
&
(
(
1
<<
pcSlice
->
getSPS
()
->
getBitsForPOC
()
)
-
1
);
WRITE_CODE
(
picOrderCntLSB
,
pcSlice
->
getSPS
()
->
getBitsForPOC
(),
"slice_pic_order_cnt_lsb"
);
#endif
const
ReferencePictureSet
*
rps
=
pcSlice
->
getRPS
();
// check for bitstream restriction stating that:
...
...
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