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
Philip Cowan
VVCSoftware_VTM
Commits
a3a77d37
Commit
a3a77d37
authored
5 years ago
by
Karsten Suehring
Browse files
Options
Downloads
Patches
Plain Diff
fix parcat
- slice header syntax - NAL unit header in parcat - NAL unit type numbers being redefined
parent
dd8c4ae7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/App/Parcat/parcat.cpp
+17
-1
17 additions, 1 deletion
source/App/Parcat/parcat.cpp
with
17 additions
and
1 deletion
source/App/Parcat/parcat.cpp
+
17
−
1
View file @
a3a77d37
...
...
@@ -112,6 +112,11 @@ bool ParcatHLSyntaxReader::parseSliceHeaderUpToPoc ( ParameterSetManager *parame
{
READ_UVLC
(
uiCode
,
"num_bricks_in_slice_minus1"
);
}
#if JVET_O0181
READ_FLAG
(
uiCode
,
"non_reference_picture_flag"
);
#endif
//set uiCode to equal slice start address (or dependent slice start address)
for
(
int
i
=
0
;
i
<
pps
->
getNumExtraSliceHeaderBits
();
i
++
)
{
...
...
@@ -321,10 +326,17 @@ std::vector<uint8_t> filter_segment(const std::vector<uint8_t> & v, int idx, int
p
+=
nal_start
;
std
::
vector
<
uint8_t
>
nalu
(
p
,
p
+
nal_end
-
nal_start
);
#if JVET_O0179
int
nalu_type
=
nalu
[
1
]
>>
3
;
#else
int
nalu_header
=
nalu
[
0
];
bool
zeroTidRequiredFlag
=
(
nalu_header
&
(
1
<<
7
))
>>
7
;
int
nalUnitTypeLsb
=
(((
1
<<
4
)
-
1
)
&
nalu_header
);
int
nalu_type
=
((
zeroTidRequiredFlag
<<
4
)
+
nalUnitTypeLsb
);
#endif
#if ENABLE_TRACING
printf
(
"NALU Type: %d (%s)
\n
"
,
nalu_type
,
NALU_TYPE
[
nalu_type
]);
#endif
int
poc
=
-
1
;
int
poc_lsb
=
-
1
;
int
new_poc
=
-
1
;
...
...
@@ -358,7 +370,11 @@ std::vector<uint8_t> filter_segment(const std::vector<uint8_t> & v, int idx, int
poc
=
0
;
new_poc
=
*
poc_base
+
poc
;
}
if
((
nalu_type
>
7
&&
nalu_type
<
15
)
||
nalu_type
==
NAL_UNIT_CODED_SLICE_CRA
)
#if JVET_O0179
if
((
nalu_type
<
7
)
||
(
nalu_type
>
9
&&
nalu_type
<
15
)
)
#else
if
((
nalu_type
>
7
&&
nalu_type
<
15
)
||
nalu_type
==
NAL_UNIT_CODED_SLICE_CRA
)
#endif
{
parcatHLSReader
.
setBitstream
(
&
inp_nalu
.
getBitstream
()
);
bool
isRapPic
=
...
...
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