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
b6ddadea
Commit
b6ddadea
authored
Dec 02, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_bits.h: move in exp golomb bitstream decoding
parent
4bc2db94
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
21 deletions
+19
-21
include/vlc_bits.h
include/vlc_bits.h
+19
-0
modules/demux/mpeg/mpeg_parser_helpers.h
modules/demux/mpeg/mpeg_parser_helpers.h
+0
-19
modules/mux/mp4/mp4.c
modules/mux/mp4/mp4.c
+0
-1
modules/packetizer/h264.c
modules/packetizer/h264.c
+0
-1
No files found.
include/vlc_bits.h
View file @
b6ddadea
...
@@ -208,4 +208,23 @@ static inline void bs_align_1( bs_t *s )
...
@@ -208,4 +208,23 @@ static inline void bs_align_1( bs_t *s )
}
}
}
}
/* Read unsigned Exp-Golomb code */
static
inline
uint32_t
bs_read_ue
(
bs_t
*
bs
)
{
int32_t
i
=
0
;
while
(
bs_read1
(
bs
)
==
0
&&
bs
->
p
<
bs
->
p_end
&&
i
<
32
)
i
++
;
return
(
1
<<
i
)
-
1
+
bs_read
(
bs
,
i
);
}
/* Read signed Exp-Golomb code */
static
inline
int32_t
bs_read_se
(
bs_t
*
s
)
{
int
val
=
bs_read_ue
(
s
);
return
val
&
0x01
?
(
val
+
1
)
/
2
:
-
(
val
/
2
);
}
#endif
#endif
modules/demux/mpeg/mpeg_parser_helpers.h
View file @
b6ddadea
...
@@ -51,25 +51,6 @@ static inline void hevc_skip_profile_tiers_level( bs_t * bs, int32_t max_sub_lay
...
@@ -51,25 +51,6 @@ static inline void hevc_skip_profile_tiers_level( bs_t * bs, int32_t max_sub_lay
}
}
}
}
/* Read unsigned Exp-Golomb code */
static
inline
uint32_t
bs_read_ue
(
bs_t
*
bs
)
{
int32_t
i
=
0
;
while
(
bs_read1
(
bs
)
==
0
&&
bs
->
p
<
bs
->
p_end
&&
i
<
32
)
i
++
;
return
(
1
<<
i
)
-
1
+
bs_read
(
bs
,
i
);
}
/* Read signed Exp-Golomb code */
static
inline
int32_t
bs_read_se
(
bs_t
*
s
)
{
int
val
=
bs_read_ue
(
s
);
return
val
&
0x01
?
(
val
+
1
)
/
2
:
-
(
val
/
2
);
}
/* Discards emulation prevention three bytes */
/* Discards emulation prevention three bytes */
static
inline
size_t
nal_to_rbsp
(
const
uint8_t
*
p_src
,
uint8_t
*
p_dst
,
size_t
i_size
)
static
inline
size_t
nal_to_rbsp
(
const
uint8_t
*
p_src
,
uint8_t
*
p_dst
,
size_t
i_size
)
{
{
...
...
modules/mux/mp4/mp4.c
View file @
b6ddadea
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
#include <vlc_iso_lang.h>
#include <vlc_iso_lang.h>
#include <vlc_meta.h>
#include <vlc_meta.h>
//#include "../demux/mpeg/mpeg_parser_helpers.h"
#include "../demux/mp4/libmp4.h"
#include "../demux/mp4/libmp4.h"
#include "libmp4mux.h"
#include "libmp4mux.h"
...
...
modules/packetizer/h264.c
View file @
b6ddadea
...
@@ -43,7 +43,6 @@
...
@@ -43,7 +43,6 @@
#include "../codec/cc.h"
#include "../codec/cc.h"
#include "h264_nal.h"
#include "h264_nal.h"
#include "packetizer_helper.h"
#include "packetizer_helper.h"
#include "../demux/mpeg/mpeg_parser_helpers.h"
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
...
...
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