Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4bdb1e99
Commit
4bdb1e99
authored
Dec 14, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hxxx_nal: add nal to rbsp conversion helpers
parent
3bb208b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
modules/packetizer/hxxx_nal.h
modules/packetizer/hxxx_nal.h
+17
-0
No files found.
modules/packetizer/hxxx_nal.h
View file @
4bdb1e99
...
...
@@ -74,4 +74,21 @@ static inline uint8_t * hxxx_ep3b_to_rbsp(const uint8_t *p_src, size_t i_src, si
return
p_dst
;
}
static
inline
uint8_t
*
hxxx_AnnexB_NAL_to_rbsp
(
const
uint8_t
*
p_src
,
size_t
i_src
,
size_t
*
pi_ret
)
{
if
(
!
hxxx_strip_AnnexB_startcode
(
&
p_src
,
&
i_src
))
return
NULL
;
return
hxxx_ep3b_to_rbsp
(
p_src
,
i_src
,
pi_ret
);
}
static
inline
uint8_t
*
hxxx_xvc1_NAL_to_rbsp
(
const
uint8_t
*
p_src
,
size_t
i_src
,
uint8_t
i_nal_length_size
,
size_t
*
pi_ret
)
{
if
(
i_src
<
i_nal_length_size
)
return
NULL
;
p_src
+=
i_nal_length_size
;
i_src
-=
i_nal_length_size
;
return
hxxx_ep3b_to_rbsp
(
p_src
,
i_src
,
pi_ret
);
}
#endif // HXXX_NAL_H
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