Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
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
libdvbpsi
Commits
53517376
Commit
53517376
authored
Feb 21, 2016
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Mar 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a dump function for FMC descriptor to dvbinfo
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
3729540b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
examples/dvbinfo/libdvbpsi.c
examples/dvbinfo/libdvbpsi.c
+16
-0
No files found.
examples/dvbinfo/libdvbpsi.c
View file @
53517376
...
@@ -1083,6 +1083,18 @@ static void DumpSLDescriptor(const void *p_descriptor)
...
@@ -1083,6 +1083,18 @@ static void DumpSLDescriptor(const void *p_descriptor)
printf
(
"ES_ID : 0x%04"
PRIx16
"
\n
"
,
p_sl_dr
->
i_es_id
);
printf
(
"ES_ID : 0x%04"
PRIx16
"
\n
"
,
p_sl_dr
->
i_es_id
);
}
}
static
void
DumpFMCDescriptor
(
const
void
*
p_descriptor
)
{
const
dvbpsi_mpeg_fmc_dr_t
*
p_fmc_dr
=
p_descriptor
;
printf
(
"Number of FMC structures : %"
PRIu8
"
\n
"
,
p_fmc_dr
->
i_num_fmc
);
for
(
unsigned
int
i
=
0
;
i
<
p_fmc_dr
->
i_num_fmc
;
++
i
)
{
const
dvbpsi_fmc_t
*
fmc
=
p_fmc_dr
->
p_fmc
+
i
;
printf
(
"
\t\t
ES_ID : 0x%04"
PRIx16
"
\n
"
,
fmc
->
i_es_id
);
printf
(
"
\t\t
FlexMuxChannel : 0x%02"
PRIx8
"
\n
"
,
fmc
->
i_flex_mux_channel
);
}
}
static
void
DumpContentLabellingDescriptor
(
const
void
*
p_descriptor
)
static
void
DumpContentLabellingDescriptor
(
const
void
*
p_descriptor
)
{
{
const
dvbpsi_mpeg_content_labelling_dr_t
*
p_content_lbl_dr
=
p_descriptor
;
const
dvbpsi_mpeg_content_labelling_dr_t
*
p_content_lbl_dr
=
p_descriptor
;
...
@@ -1849,6 +1861,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
...
@@ -1849,6 +1861,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded
=
dvbpsi_decode_mpeg_sl_dr
(
p_descriptor
);
p_decoded
=
dvbpsi_decode_mpeg_sl_dr
(
p_descriptor
);
dump_dr_fn
=
DumpSLDescriptor
;
dump_dr_fn
=
DumpSLDescriptor
;
break
;
break
;
case
0x1f
:
p_decoded
=
dvbpsi_decode_mpeg_fmc_dr
(
p_descriptor
);
dump_dr_fn
=
DumpFMCDescriptor
;
break
;
case
0x24
:
case
0x24
:
p_decoded
=
dvbpsi_decode_mpeg_content_labelling_dr
(
p_descriptor
);
p_decoded
=
dvbpsi_decode_mpeg_content_labelling_dr
(
p_descriptor
);
dump_dr_fn
=
DumpContentLabellingDescriptor
;
dump_dr_fn
=
DumpContentLabellingDescriptor
;
...
...
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