Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
a3c984ac
Commit
a3c984ac
authored
Oct 02, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packetizer: hevc_nal: extract reorder depth
parent
6c5cfc70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
modules/packetizer/hevc_nal.c
modules/packetizer/hevc_nal.c
+8
-3
modules/packetizer/hevc_nal.h
modules/packetizer/hevc_nal.h
+1
-0
No files found.
modules/packetizer/hevc_nal.c
View file @
a3c984ac
...
...
@@ -644,9 +644,9 @@ static bool hevc_parse_video_parameter_set_rbsp( bs_t *p_bs,
0
:
p_vps
->
vps_max_sub_layers_minus1
);
i
<=
p_vps
->
vps_max_sub_layers_minus1
;
i
++
)
{
(
void
)
bs_read_ue
(
p_bs
);
//nal_ue_t
dec_pic_buffering_minus1;
(
void
)
bs_read_ue
(
p_bs
);
//nal_ue_t num_reorder_pics
;
(
void
)
bs_read_ue
(
p_bs
);
//nal_ue_t
max_latency_increase_plus1;
p_vps
->
vps_max
[
i
].
dec_pic_buffering_minus1
=
bs_read_ue
(
p_bs
)
;
p_vps
->
vps_max
[
i
].
num_reorder_pics
=
bs_read_ue
(
p_bs
)
;
p_vps
->
vps_max
[
i
].
max_latency_increase_plus1
=
bs_read_ue
(
p_bs
)
;
}
if
(
bs_remain
(
p_bs
)
<
10
)
return
false
;
...
...
@@ -1043,6 +1043,11 @@ bool hevc_get_picture_size( const hevc_sequence_parameter_set_t *p_sps,
return
true
;
}
uint8_t
hevc_get_max_num_reorder
(
const
hevc_video_parameter_set_t
*
p_vps
)
{
return
p_vps
->
vps_max
[
0
/* base layer */
].
num_reorder_pics
;
}
static
inline
uint8_t
vlc_ceil_log2
(
uint32_t
val
)
{
uint8_t
n
=
31
-
clz
(
val
);
...
...
modules/packetizer/hevc_nal.h
View file @
a3c984ac
...
...
@@ -192,6 +192,7 @@ bool hevc_get_colorimetry( const hevc_sequence_parameter_set_t *p_sps,
video_transfer_func_t
*
p_transfer
,
video_color_space_t
*
p_colorspace
,
bool
*
p_full_range
);
uint8_t
hevc_get_max_num_reorder
(
const
hevc_video_parameter_set_t
*
p_vps
);
bool
hevc_get_slice_type
(
const
hevc_slice_segment_header_t
*
,
enum
hevc_slice_type_e
*
);
/* Get level and Profile from DecoderConfigurationRecord */
...
...
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