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
bafd5804
Commit
bafd5804
authored
Apr 23, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packetizer: h264: expose nal type in h264_nal.h
parent
6ea9e51b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
modules/packetizer/h264.c
modules/packetizer/h264.c
+0
-23
modules/packetizer/h264_nal.h
modules/packetizer/h264_nal.h
+23
-0
No files found.
modules/packetizer/h264.c
View file @
bafd5804
...
...
@@ -147,29 +147,6 @@ struct decoder_sys_t
cc_data_t
cc_next
;
};
enum
nal_unit_type_e
{
NAL_UNKNOWN
=
0
,
NAL_SLICE
=
1
,
NAL_SLICE_DPA
=
2
,
NAL_SLICE_DPB
=
3
,
NAL_SLICE_DPC
=
4
,
NAL_SLICE_IDR
=
5
,
/* ref_idc != 0 */
NAL_SEI
=
6
,
/* ref_idc == 0 */
NAL_SPS
=
7
,
NAL_PPS
=
8
,
NAL_AU_DELIMITER
=
9
/* ref_idc == 0 for 6,9,10,11,12 */
};
/* Defined in H.264 annex D */
enum
sei_type_e
{
SEI_PIC_TIMING
=
1
,
SEI_USER_DATA_REGISTERED
=
4
,
SEI_RECOVERY_POINT
=
6
};
#define BLOCK_FLAG_PRIVATE_AUD (1 << BLOCK_FLAG_PRIVATE_SHIFT)
static
block_t
*
Packetize
(
decoder_t
*
,
block_t
**
);
...
...
modules/packetizer/h264_nal.h
View file @
bafd5804
...
...
@@ -43,6 +43,29 @@
#define PROFILE_H264_MVC_STEREO_HIGH 128
#define PROFILE_H264_MVC_MULTIVIEW_HIGH 118
enum
nal_unit_type_e
{
NAL_UNKNOWN
=
0
,
NAL_SLICE
=
1
,
NAL_SLICE_DPA
=
2
,
NAL_SLICE_DPB
=
3
,
NAL_SLICE_DPC
=
4
,
NAL_SLICE_IDR
=
5
,
/* ref_idc != 0 */
NAL_SEI
=
6
,
/* ref_idc == 0 */
NAL_SPS
=
7
,
NAL_PPS
=
8
,
NAL_AU_DELIMITER
=
9
/* ref_idc == 0 for 6,9,10,11,12 */
};
/* Defined in H.264 annex D */
enum
sei_type_e
{
SEI_PIC_TIMING
=
1
,
SEI_USER_DATA_REGISTERED
=
4
,
SEI_RECOVERY_POINT
=
6
};
/* Parse the SPS/PPS Metadata and convert it to annex b format */
int
convert_sps_pps
(
decoder_t
*
p_dec
,
const
uint8_t
*
p_buf
,
uint32_t
i_buf_size
,
uint8_t
*
p_out_buf
,
...
...
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