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
d1f5f4a0
Commit
d1f5f4a0
authored
Sep 28, 2017
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec: hxxx_helper: add h264_helper_get_current_profile_level
parent
bced5fe7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
modules/codec/hxxx_helper.c
modules/codec/hxxx_helper.c
+12
-0
modules/codec/hxxx_helper.h
modules/codec/hxxx_helper.h
+3
-0
No files found.
modules/codec/hxxx_helper.c
View file @
d1f5f4a0
...
...
@@ -600,6 +600,18 @@ h264_helper_get_current_dpb_values(const struct hxxx_helper *hh,
VLC_SUCCESS
:
VLC_EGENERIC
;
}
int
h264_helper_get_current_profile_level
(
const
struct
hxxx_helper
*
hh
,
uint8_t
*
p_profile
,
uint8_t
*
p_level
)
{
const
struct
hxxx_helper_nal
*
hsps
=
h264_helper_get_current_sps
(
hh
);
if
(
hsps
==
NULL
)
return
VLC_EGENERIC
;
*
p_profile
=
hsps
->
h264_sps
->
i_profile
;
*
p_level
=
hsps
->
h264_sps
->
i_level
;
return
VLC_SUCCESS
;
}
int
hxxx_helper_get_colorimetry
(
const
struct
hxxx_helper
*
hh
,
video_color_primaries_t
*
p_primaries
,
...
...
modules/codec/hxxx_helper.h
View file @
d1f5f4a0
...
...
@@ -87,6 +87,9 @@ int h264_helper_get_current_sar(const struct hxxx_helper *hh, int *p_num, int *p
int
h264_helper_get_current_dpb_values
(
const
struct
hxxx_helper
*
hh
,
uint8_t
*
p_depth
,
unsigned
*
pi_delay
);
int
h264_helper_get_current_profile_level
(
const
struct
hxxx_helper
*
hh
,
uint8_t
*
p_profile
,
uint8_t
*
p_level
);
int
hxxx_helper_get_colorimetry
(
const
struct
hxxx_helper
*
hh
,
video_color_primaries_t
*
p_primaries
,
video_transfer_func_t
*
p_transfer
,
...
...
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