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
6ed78a23
Commit
6ed78a23
authored
Feb 17, 2017
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvbinfo: dump descriptor 0x50
parent
10e546bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
examples/dvbinfo/libdvbpsi.c
examples/dvbinfo/libdvbpsi.c
+22
-1
No files found.
examples/dvbinfo/libdvbpsi.c
View file @
6ed78a23
...
@@ -1193,6 +1193,23 @@ static void DumpSystemClockDescriptor(const void *p_descriptor)
...
@@ -1193,6 +1193,23 @@ static void DumpSystemClockDescriptor(const void *p_descriptor)
pow
(
10
.
0
,
-
(
double
)
p_clock_descriptor
->
i_clock_accuracy_exponent
));
pow
(
10
.
0
,
-
(
double
)
p_clock_descriptor
->
i_clock_accuracy_exponent
));
}
}
/*****************************************************************************
* DumpComponentDescriptor
*****************************************************************************/
static
void
DumpComponentDescriptor
(
const
void
*
p_descriptor
)
{
const
dvbpsi_dvb_component_dr_t
*
p_dvb_component_dr
=
p_descriptor
;
printf
(
"Stream content: %d
\n
"
,
p_dvb_component_dr
->
i_stream_content
);
printf
(
"Component type: %d
\n
"
,
p_dvb_component_dr
->
i_component_type
);
printf
(
"Component tag : %d
\n
"
,
p_dvb_component_dr
->
i_component_tag
);
printf
(
"ISO 639 code : %c%c%c
\n
"
,
p_dvb_component_dr
->
i_iso_639_code
[
0
],
p_dvb_component_dr
->
i_iso_639_code
[
1
],
p_dvb_component_dr
->
i_iso_639_code
[
2
]);
for
(
int
i
=
0
;
i
<
p_dvb_component_dr
->
i_text_length
;
i
++
)
{
printf
(
"%c"
,
p_dvb_component_dr
->
i_text
[
i
]);
}
printf
(
"
\n
"
);
}
/*****************************************************************************
/*****************************************************************************
* DumpStreamIdentifierDescriptor
* DumpStreamIdentifierDescriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -1950,6 +1967,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
...
@@ -1950,6 +1967,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded
=
dvbpsi_decode_dvb_tshifted_ev_dr
(
p_descriptor
);
p_decoded
=
dvbpsi_decode_dvb_tshifted_ev_dr
(
p_descriptor
);
dump_dr_fn
=
DumpTimeShiftedEventDescriptor
;
dump_dr_fn
=
DumpTimeShiftedEventDescriptor
;
break
;
break
;
case
0x50
:
p_decoded
=
dvbpsi_decode_dvb_component_dr
(
p_descriptor
);
dump_dr_fn
=
DumpComponentDescriptor
;
break
;
case
0x52
:
case
0x52
:
p_decoded
=
dvbpsi_decode_dvb_stream_identifier_dr
(
p_descriptor
);
p_decoded
=
dvbpsi_decode_dvb_stream_identifier_dr
(
p_descriptor
);
dump_dr_fn
=
DumpStreamIdentifierDescriptor
;
dump_dr_fn
=
DumpStreamIdentifierDescriptor
;
...
@@ -1972,7 +1993,7 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
...
@@ -1972,7 +1993,7 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
break
;
break
;
}
}
if
(
dump_dr_fn
&&
p_decoded
)
if
(
dump_dr_fn
&&
p_decoded
)
{
{
/* call the dump function if we could decode the descriptor. */
/* call the dump function if we could decode the descriptor. */
dump_dr_fn
(
p_decoded
);
dump_dr_fn
(
p_decoded
);
...
...
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