Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
vlc
Commits
c48aa72c
Commit
c48aa72c
authored
Feb 18, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTV: add stream parameter for DVB-S2 (refs #12034)
parent
fd0970ab
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
modules/access/dtv/access.c
modules/access/dtv/access.c
+7
-1
modules/access/dtv/bdagraph.cpp
modules/access/dtv/bdagraph.cpp
+2
-1
modules/access/dtv/dtv.h
modules/access/dtv/dtv.h
+2
-1
modules/access/dtv/linux.c
modules/access/dtv/linux.c
+2
-1
No files found.
modules/access/dtv/access.c
View file @
c48aa72c
...
...
@@ -151,6 +151,8 @@ static const char *const hierarchy_user[] = { N_("Automatic"),
#define TIME_INTERLEAVING_B_TEXT N_("Layer B time interleaving")
#define TIME_INTERLEAVING_C_TEXT N_("Layer C time interleaving")
#define STREAM_ID_TEXT N_("Stream identifier")
#define PILOT_TEXT N_("Pilot")
#define ROLLOFF_TEXT N_("Roll-off factor")
...
...
@@ -358,6 +360,9 @@ vlc_module_begin ()
change_safe
()
set_section
(
N_
(
"DVB-S2 parameters"
),
NULL
)
add_integer
(
"dvb-stream"
,
0
,
STREAM_ID_TEXT
,
STREAM_ID_TEXT
,
false
)
change_integer_range
(
0
,
255
)
change_safe
()
add_integer
(
"dvb-pilot"
,
-
1
,
PILOT_TEXT
,
PILOT_TEXT
,
true
)
change_integer_list
(
auto_off_on_vlc
,
auto_off_on_user
)
change_safe
()
...
...
@@ -872,8 +877,9 @@ static int dvbs2_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)
uint32_t
srate
=
var_InheritInteger
(
obj
,
"dvb-srate"
);
int
pilot
=
var_InheritInteger
(
obj
,
"dvb-pilot"
);
int
rolloff
=
var_InheritInteger
(
obj
,
"dvb-rolloff"
);
uint8_t
sid
=
var_InheritInteger
(
obj
,
"dvb-stream"
);
int
ret
=
dvb_set_dvbs2
(
dev
,
freq
,
mod
,
srate
,
fec
,
pilot
,
rolloff
);
int
ret
=
dvb_set_dvbs2
(
dev
,
freq
,
mod
,
srate
,
fec
,
pilot
,
rolloff
,
sid
);
if
(
ret
==
0
)
sec_setup
(
obj
,
dev
,
freq
);
return
ret
;
...
...
modules/access/dtv/bdagraph.cpp
View file @
c48aa72c
...
...
@@ -209,7 +209,8 @@ int dvb_set_dvbs (dvb_device_t *d, uint64_t freq, uint32_t srate, uint32_t fec)
}
int
dvb_set_dvbs2
(
dvb_device_t
*
,
uint64_t
/*freq*/
,
const
char
*
/*mod*/
,
uint32_t
/*srate*/
,
uint32_t
/*fec*/
,
int
/*pilot*/
,
int
/*rolloff*/
)
uint32_t
/*srate*/
,
uint32_t
/*fec*/
,
int
/*pilot*/
,
int
/*rolloff*/
,
uint8_t
/*sid*/
)
{
return
VLC_EGENERIC
;
}
...
...
modules/access/dtv/dtv.h
View file @
c48aa72c
...
...
@@ -75,7 +75,8 @@ int dvb_set_dvbc (dvb_device_t *, uint32_t freq, const char *mod,
/* DVB-S */
int
dvb_set_dvbs
(
dvb_device_t
*
,
uint64_t
freq
,
uint32_t
srate
,
uint32_t
fec
);
int
dvb_set_dvbs2
(
dvb_device_t
*
,
uint64_t
freq
,
const
char
*
mod
,
uint32_t
srate
,
uint32_t
fec
,
int
pilot
,
int
rolloff
);
uint32_t
srate
,
uint32_t
fec
,
int
pilot
,
int
rolloff
,
uint8_t
sid
);
int
dvb_set_sec
(
dvb_device_t
*
,
uint64_t
freq
,
char
pol
,
uint32_t
lowf
,
uint32_t
highf
,
uint32_t
switchf
);
...
...
modules/access/dtv/linux.c
View file @
c48aa72c
...
...
@@ -888,7 +888,8 @@ int dvb_set_dvbs (dvb_device_t *d, uint64_t freq_Hz,
}
int
dvb_set_dvbs2
(
dvb_device_t
*
d
,
uint64_t
freq_Hz
,
const
char
*
modstr
,
uint32_t
srate
,
uint32_t
fec
,
int
pilot
,
int
rolloff
)
uint32_t
srate
,
uint32_t
fec
,
int
pilot
,
int
rolloff
,
uint8_t
sid
)
{
uint32_t
freq
=
freq_Hz
/
1000
;
unsigned
mod
=
dvb_parse_modulation
(
modstr
,
QPSK
);
...
...
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