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
464b8f55
Commit
464b8f55
authored
Nov 02, 2016
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvbinfo: decode Scrambling descriptor
parent
631af38f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
examples/dvbinfo/libdvbpsi.c
examples/dvbinfo/libdvbpsi.c
+36
-1
No files found.
examples/dvbinfo/libdvbpsi.c
View file @
464b8f55
...
...
@@ -949,7 +949,7 @@ static char const* GetDescriptorName(uint8_t tag)
case
0x62
:
return
"Frequency List"
;
case
0x63
:
return
"Partial Transport Stream"
;
case
0x64
:
return
"Data Broadcast"
;
case
0x65
:
return
"
CA System
descriptor"
;
case
0x65
:
return
"
Scrambling
descriptor"
;
case
0x66
:
return
"Data Broadcast Identifier"
;
case
0x67
:
return
"Transport Stream Identifier"
;
case
0x68
:
return
"DSNG descriptor"
;
...
...
@@ -1396,6 +1396,37 @@ static void DumpSubtitleDescriptor(const void *p_descriptor)
}
}
static
void
DumpScramblingDescriptor
(
const
void
*
p_descriptor
)
{
const
dvbpsi_dvb_scrambling_dr_t
*
p_dr
=
p_descriptor
;
const
char
*
msg
;
switch
(
p_dr
->
i_scrambling_mode
)
{
case
0x00
:
case
0xff
:
msg
=
"Reserved"
;
break
;
case
0x01
:
msg
=
"DVB-CSA1"
;
break
;
case
0x02
:
msg
=
"DVB-CSA2"
;
break
;
case
0x03
:
msg
=
"DVB-CSA3 in standard mode"
;
break
;
case
0x04
:
msg
=
"DVB-CSA3 in minimally enhanced mode"
;
break
;
case
0x05
:
msg
=
"DVB-CSA3 in fully enhanced mode"
;
break
;
default:
if
((
p_dr
->
i_scrambling_mode
>=
0x06
)
&&
(
p_dr
->
i_scrambling_mode
<=
0x6F
))
msg
=
"Reserved"
;
else
if
((
p_dr
->
i_scrambling_mode
>=
0x70
)
&&
(
p_dr
->
i_scrambling_mode
<=
0x7F
))
msg
=
"ATIS defined (ATIS-0800006, see annex J)"
;
else
if
((
p_dr
->
i_scrambling_mode
>=
0x80
)
&&
(
p_dr
->
i_scrambling_mode
<=
0xFE
))
msg
=
"User defined"
;
else
msg
=
"Unknown"
;
break
;
}
printf
(
"scrambling mode %d (%s)
\n
"
,
p_dr
->
i_scrambling_mode
,
msg
);
}
static
const
char
*
AACProfileToString
(
dvbpsi_aac_profile_and_level_t
profile
)
{
switch
(
profile
)
...
...
@@ -1935,6 +1966,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded
=
dvbpsi_decode_dvb_subtitling_dr
(
p_descriptor
);
dump_dr_fn
=
DumpSubtitleDescriptor
;
break
;
case
0x65
:
p_decoded
=
dvbpsi_decode_dvb_scrambling_dr
(
p_descriptor
);
dump_dr_fn
=
DumpScramblingDescriptor
;
break
;
}
if
(
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