Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bitstream
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
bitstream
Commits
853d0789
Commit
853d0789
authored
Oct 10, 2011
by
Georgi Chorbadzhiyski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvb/si: Show text type for descriptor 0x46 (VBI teletext descriptor).
Use definitions from table 100 of EN 300 468.
parent
caf1010c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
dvb/si/desc_46.h
dvb/si/desc_46.h
+17
-3
No files found.
dvb/si/desc_46.h
View file @
853d0789
...
@@ -77,6 +77,16 @@ static inline uint8_t desc46n_get_teletexttype(const uint8_t *p_desc_n)
...
@@ -77,6 +77,16 @@ static inline uint8_t desc46n_get_teletexttype(const uint8_t *p_desc_n)
return
p_desc_n
[
3
]
>>
3
;
return
p_desc_n
[
3
]
>>
3
;
}
}
static
inline
char
*
desc46_get_teletexttype_txt
(
uint8_t
i_type
)
{
return
i_type
==
0x00
?
"Reserved"
:
i_type
==
0x01
?
"Initial teletext page"
:
i_type
==
0x02
?
"Teletext subtitle page"
:
i_type
==
0x03
?
"Additional information page"
:
i_type
==
0x04
?
"Programme schedule page"
:
i_type
==
0x05
?
"Teletext subtitle page for hearing impaired people schedule page"
:
"Reserved"
;
}
static
inline
void
desc46n_set_teletextmagazine
(
uint8_t
*
p_desc_n
,
static
inline
void
desc46n_set_teletextmagazine
(
uint8_t
*
p_desc_n
,
uint8_t
i_magazine
)
uint8_t
i_magazine
)
{
{
...
@@ -115,18 +125,22 @@ static inline void desc46_print(uint8_t *p_desc, f_print pf_print,
...
@@ -115,18 +125,22 @@ static inline void desc46_print(uint8_t *p_desc, f_print pf_print,
switch
(
i_print_type
)
{
switch
(
i_print_type
)
{
case
PRINT_XML
:
case
PRINT_XML
:
pf_print
(
opaque
,
pf_print
(
opaque
,
"<%s language=
\"
%3.3s
\"
type=
\"
0x%hhx
\"
mag=
\"
%hhu
\"
page=
\"
0x%hh
x
\"
/>"
,
"<%s language=
\"
%3.3s
\"
type=
\"
0x%hhx
\"
type_txt=
\"
%s
\"
mag=
\"
%hhu
\"
page=
\"
0x%hhu
x
\"
/>"
,
desc_get_tag
(
p_desc
)
==
0x46
?
"VBI_TELX_DESC"
:
"TELX_DESC"
,
desc_get_tag
(
p_desc
)
==
0x46
?
"VBI_TELX_DESC"
:
"TELX_DESC"
,
(
const
char
*
)
desc46n_get_code
(
p_desc_n
),
(
const
char
*
)
desc46n_get_code
(
p_desc_n
),
desc46n_get_teletexttype
(
p_desc_n
),
desc46n_get_teletexttype
(
p_desc_n
),
desc46_get_teletexttype_txt
(
desc46n_get_teletexttype
(
p_desc_n
)),
desc46n_get_teletextmagazine
(
p_desc_n
),
desc46n_get_teletextmagazine
(
p_desc_n
),
desc46n_get_teletextpage
(
p_desc_n
));
desc46n_get_teletextpage
(
p_desc_n
));
break
;
break
;
default:
default:
pf_print
(
opaque
,
pf_print
(
opaque
,
" - desc %x telx language=%3.3s type=0x%hhx mag=%hhu page=0x%hhx"
,
" - desc %x %s language=%3.3s type=0x%hhx type_txt=
\"
%s
\"
mag=%hhu page=0x%hhux"
,
desc_get_tag
(
p_desc
),
(
const
char
*
)
desc46n_get_code
(
p_desc_n
),
desc_get_tag
(
p_desc
),
desc_get_tag
(
p_desc
)
==
0x46
?
"vbi_telx"
:
"telx"
,
(
const
char
*
)
desc46n_get_code
(
p_desc_n
),
desc46n_get_teletexttype
(
p_desc_n
),
desc46n_get_teletexttype
(
p_desc_n
),
desc46_get_teletexttype_txt
(
desc46n_get_teletexttype
(
p_desc_n
)),
desc46n_get_teletextmagazine
(
p_desc_n
),
desc46n_get_teletextmagazine
(
p_desc_n
),
desc46n_get_teletextpage
(
p_desc_n
));
desc46n_get_teletextpage
(
p_desc_n
));
}
}
...
...
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