Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
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
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
jvet
VVCSoftware_VTM
Commits
dde2b515
Commit
dde2b515
authored
3 years ago
by
Karsten Suehring
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix1449' into 'master'
Fix
#1449
: output only layers in active OLS See merge request
!2049
parents
05e6a962
2827df88
No related branches found
No related tags found
1 merge request
!2049
Fix #1449: output only layers in active OLS
Pipeline
#6214
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/Lib/DecoderLib/DecLib.cpp
+56
-0
56 additions, 0 deletions
source/Lib/DecoderLib/DecLib.cpp
with
56 additions
and
0 deletions
source/Lib/DecoderLib/DecLib.cpp
+
56
−
0
View file @
dde2b515
...
...
@@ -690,6 +690,34 @@ void DecLib::finishPictureLight(int& poc, PicList*& rpcListPic )
Slice
*
pcSlice
=
m_pcPic
->
cs
->
slice
;
m_pcPic
->
neededForOutput
=
(
pcSlice
->
getPicHeader
()
->
getPicOutputFlag
()
?
true
:
false
);
const
VPS
*
vps
=
pcSlice
->
getVPS
();
if
(
vps
!=
nullptr
)
{
if
(
!
vps
->
getEachLayerIsAnOlsFlag
())
{
const
int
layerId
=
pcSlice
->
getNalUnitLayerId
();
const
int
generalLayerId
=
vps
->
getGeneralLayerIdx
(
layerId
);
bool
layerIsOutput
=
true
;
if
(
vps
->
getOlsModeIdc
()
==
0
)
{
layerIsOutput
=
generalLayerId
==
vps
->
m_targetOlsIdx
;
}
else
if
(
vps
->
getOlsModeIdc
()
==
1
)
{
layerIsOutput
=
generalLayerId
<=
vps
->
m_targetOlsIdx
;
}
else
if
(
vps
->
getOlsModeIdc
()
==
2
)
{
layerIsOutput
=
vps
->
getOlsOutputLayerFlag
(
vps
->
m_targetOlsIdx
,
generalLayerId
);
}
if
(
!
layerIsOutput
)
{
m_pcPic
->
neededForOutput
=
false
;
}
}
}
m_pcPic
->
reconstructed
=
true
;
Slice
::
sortPicList
(
m_cListPic
);
// sorting for application output
...
...
@@ -822,6 +850,34 @@ void DecLib::finishPicture(int &poc, PicList *&rpcListPic, MsgLevel msgl, bool a
}
}
}
const
VPS
*
vps
=
pcSlice
->
getVPS
();
if
(
vps
!=
nullptr
)
{
if
(
!
vps
->
getEachLayerIsAnOlsFlag
())
{
const
int
layerId
=
pcSlice
->
getNalUnitLayerId
();
const
int
generalLayerId
=
vps
->
getGeneralLayerIdx
(
layerId
);
bool
layerIsOutput
=
true
;
if
(
vps
->
getOlsModeIdc
()
==
0
)
{
layerIsOutput
=
generalLayerId
==
vps
->
m_targetOlsIdx
;
}
else
if
(
vps
->
getOlsModeIdc
()
==
1
)
{
layerIsOutput
=
generalLayerId
<=
vps
->
m_targetOlsIdx
;
}
else
if
(
vps
->
getOlsModeIdc
()
==
2
)
{
layerIsOutput
=
vps
->
getOlsOutputLayerFlag
(
vps
->
m_targetOlsIdx
,
generalLayerId
);
}
if
(
!
layerIsOutput
)
{
m_pcPic
->
neededForOutput
=
false
;
}
}
}
m_pcPic
->
reconstructed
=
true
;
// process buffered suffix APS NALUs
...
...
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