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
71eac086
Commit
71eac086
authored
Feb 17, 2017
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvbinfo: dump teletext descriptor
parent
539473b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
examples/dvbinfo/libdvbpsi.c
examples/dvbinfo/libdvbpsi.c
+22
-0
No files found.
examples/dvbinfo/libdvbpsi.c
View file @
71eac086
...
...
@@ -1405,6 +1405,24 @@ static void DumpParentalRatingDescriptor(const void *p_descriptor)
}
}
/*****************************************************************************
* DumpTeletextDescriptor
*****************************************************************************/
static
void
DumpTeletextDescriptor
(
const
void
*
p_descriptor
)
{
const
dvbpsi_dvb_teletext_dr_t
*
p_teletext_descriptor
=
p_descriptor
;
printf
(
"Teletext pages
\n
"
);
for
(
int
i
=
0
;
i
<
p_teletext_descriptor
->
i_pages_number
;
i
++
)
{
printf
(
"
\t
ISO 6392 language code: %c%c%c
\n
"
,
p_teletext_descriptor
->
p_pages
[
i
].
i_iso6392_language_code
[
0
],
p_teletext_descriptor
->
p_pages
[
i
].
i_iso6392_language_code
[
1
],
p_teletext_descriptor
->
p_pages
[
i
].
i_iso6392_language_code
[
2
]);
printf
(
"
\t
Teletext type : %d
\n
"
,
p_teletext_descriptor
->
p_pages
[
i
].
i_teletext_type
);
printf
(
"
\t
Teletext magazine : %d
\n
"
,
p_teletext_descriptor
->
p_pages
[
i
].
i_teletext_magazine_number
);
printf
(
"
\t
Teletext page : %d
\n
"
,
p_teletext_descriptor
->
p_pages
[
i
].
i_teletext_page_number
);
}
}
/*****************************************************************************
* DumpSubtitleDescriptor
*****************************************************************************/
...
...
@@ -2000,6 +2018,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded
=
dvbpsi_decode_dvb_parental_rating_dr
(
p_descriptor
);
dump_dr_fn
=
DumpParentalRatingDescriptor
;
break
;
case
0x56
:
p_decoded
=
dvbpsi_decode_dvb_teletext_dr
(
p_descriptor
);
dump_dr_fn
=
DumpTeletextDescriptor
;
break
;
case
0x59
:
p_decoded
=
dvbpsi_decode_dvb_subtitling_dr
(
p_descriptor
);
dump_dr_fn
=
DumpSubtitleDescriptor
;
...
...
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