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
51c3cea1
Commit
51c3cea1
authored
Aug 12, 2003
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* more cleanup
parent
f404f6c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
28 deletions
+83
-28
modules/access/dvb/access.c
modules/access/dvb/access.c
+14
-10
modules/access/dvb/dvb.c
modules/access/dvb/dvb.c
+68
-17
modules/access/dvb/qpsk.c
modules/access/dvb/qpsk.c
+1
-1
No files found.
modules/access/dvb/access.c
View file @
51c3cea1
...
...
@@ -124,7 +124,7 @@ int E_(Open) ( vlc_object_t *p_this )
}
else
/* no frontend probing is done so use default border values. */
{
msg_Dbg
(
p_input
,
"using default
b
values for frontend info"
);
msg_Dbg
(
p_input
,
"using default values for frontend info"
);
i_len
=
sizeof
(
FRONTEND
);
if
(
snprintf
(
frontend
,
sizeof
(
FRONTEND
),
FRONTEND
,
u_adapter
,
u_device
)
>=
i_len
)
{
...
...
@@ -145,8 +145,8 @@ int E_(Open) ( vlc_object_t *p_this )
frontend_info
.
frequency_max
=
12999
*
1000
;
frontend_info
.
frequency_min
=
9750
*
1000
;
frontend_info
.
symbol_rate_max
=
30000
;
frontend_info
.
symbol_rate_min
=
1000
;
frontend_info
.
symbol_rate_max
=
30000
*
1000
;
frontend_info
.
symbol_rate_min
=
1000
*
1000
;
}
/* Register Callback functions */
...
...
@@ -179,6 +179,7 @@ int E_(Open) ( vlc_object_t *p_this )
{
msg_Warn
(
p_input
,
"invalid frequency %d (kHz), using default one"
,
u_freq
);
u_freq
=
config_GetInt
(
p_input
,
"frequency"
);
u_freq
*=
1000
;
if
(
((
u_freq
)
>
frontend_info
.
frequency_max
)
||
((
u_freq
)
<
frontend_info
.
frequency_min
)
)
{
...
...
@@ -187,11 +188,13 @@ int E_(Open) ( vlc_object_t *p_this )
}
}
u_srate
*=
1000
;
if
(
((
u_srate
)
>
frontend_info
.
symbol_rate_max
)
||
((
u_srate
)
<
frontend_info
.
symbol_rate_min
)
)
{
msg_Warn
(
p_input
,
"invalid symbol rate, using default one"
);
u_srate
=
config_GetInt
(
p_input
,
"symbol-rate"
);
u_srate
*=
1000
;
if
(
((
u_srate
)
>
frontend_info
.
symbol_rate_max
)
||
((
u_srate
)
<
frontend_info
.
symbol_rate_min
)
)
{
...
...
@@ -235,7 +238,7 @@ int E_(Open) ( vlc_object_t *p_this )
case
FE_QPSK
:
fep
.
frequency
=
u_freq
;
fep
.
inversion
=
dvb_DecodeInversion
(
p_input
,
(
int
)
b_polarisation
);
fep
.
u
.
qpsk
.
symbol_rate
=
u_srate
*
1000
;
fep
.
u
.
qpsk
.
symbol_rate
=
u_srate
;
fep
.
u
.
qpsk
.
fec_inner
=
dvb_DecodeFEC
(
p_input
,
i_fec
);
msg_Dbg
(
p_input
,
"satellite (QPSK) frontend found on %s"
,
frontend_info
.
name
);
break
;
...
...
@@ -246,7 +249,7 @@ int E_(Open) ( vlc_object_t *p_this )
fep
.
frequency
=
u_freq
;
fep
.
inversion
=
dvb_DecodeInversion
(
p_input
,
(
int
)
b_polarisation
);
fep
.
u
.
qam
.
symbol_rate
=
u_srate
*
1000
;
fep
.
u
.
qam
.
symbol_rate
=
u_srate
;
fep
.
u
.
qam
.
fec_inner
=
dvb_DecodeFEC
(
p_input
,
i_fec
);
fep
.
u
.
qam
.
modulation
=
dvb_DecodeModulation
(
p_input
,
i_modulation
);
msg_Dbg
(
p_input
,
"cable (QAM) frontend found on %s"
,
frontend_info
.
name
);
...
...
@@ -347,7 +350,7 @@ int E_(Open) ( vlc_object_t *p_this )
msg_Dbg
(
p_input
,
"setting filter on PAT"
);
if
(
ioctl_SetDMXFilter
(
p_input
,
0
,
&
i_fd
,
3
,
u_adapter
,
u_device
)
<
0
)
if
(
ioctl_SetDMXFilter
(
p_input
,
0
,
&
i_fd
,
21
,
u_adapter
,
u_device
)
<
0
)
{
# ifdef HAVE_ERRNO_H
msg_Err
(
p_input
,
"an error occured when setting filter on PAT (%s)"
,
strerror
(
errno
)
);
...
...
@@ -432,7 +435,7 @@ static ssize_t SatelliteRead( input_thread_t * p_input, byte_t * p_buffer,
{
ioctl_SetDMXFilter
(
p_input
,
p_input
->
stream
.
pp_programs
[
i
]
->
pp_es
[
0
]
->
i_id
,
&
p_input
->
stream
.
pp_programs
[
i
]
->
pp_es
[
0
]
->
i_demux_fd
,
3
,
u_adapter
,
u_device
);
21
,
u_adapter
,
u_device
);
}
}
...
...
@@ -509,7 +512,7 @@ int SatelliteSetProgram( input_thread_t * p_input,
{
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_video_type
,
u_adapter
,
u_device
);
u_video_type
+=
3
;
u_video_type
+=
5
;
}
break
;
case
MPEG1_AUDIO_ES
:
...
...
@@ -519,12 +522,13 @@ int SatelliteSetProgram( input_thread_t * p_input,
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_audio_type
,
u_adapter
,
u_device
);
input_SelectES
(
p_input
,
p_es
);
u_audio_type
+=
3
;
u_audio_type
+=
5
;
}
break
;
default:
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
3
,
u_adapter
,
u_device
);
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
21
,
u_adapter
,
u_device
);
input_SelectES
(
p_input
,
p_es
);
msg_Dbg
(
p_input
,
"Warning ES streamtype 0x%d found used as DMX_PES_OTHER !!"
,(
int
)
p_es
->
i_cat
);
break
;
#undef p_es
}
...
...
modules/access/dvb/dvb.c
View file @
51c3cea1
...
...
@@ -488,45 +488,96 @@ int ioctl_SetDMXFilter(input_thread_t * p_input, int i_pid, int * pi_fd , int i_
s_filter_params
.
input
=
DMX_IN_FRONTEND
;
s_filter_params
.
output
=
DMX_OUT_TS_TAP
;
switch
(
i_type
)
{
{
/* First device */
case
1
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_VIDEO for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_VIDEO
;
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_VIDEO
0
for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_VIDEO
0
;
break
;
case
2
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_AUDIO for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_AUDIO
;
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_AUDIO
0
for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_AUDIO
0
;
break
;
case
3
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_
OTHER
for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_
OTHER
;
case
3
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_
TELETEXT0
for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_
TELETEXT0
;
break
;
case
4
:
case
4
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_SUBTITLE0 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_SUBTITLE0
;
break
;
case
5
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_PCR0 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_PCR0
;
break
;
/* Second device */
case
6
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_VIDEO1 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_VIDEO1
;
break
;
case
5
:
case
7
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_AUDIO1 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_AUDIO1
;
break
;
case
8
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_TELETEXT1 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_TELETEXT1
;
break
;
case
7
:
case
9
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_SUBTITLE1 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_SUBTITLE1
;
break
;
case
10
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_PCR1 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_PCR1
;
break
;
/* Third device */
case
11
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_VIDEO2 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_VIDEO2
;
break
;
case
8
:
case
12
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_AUDIO2 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_AUDIO2
;
break
;
case
10
:
break
;
case
13
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_TELETEXT2 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_TELETEXT2
;
break
;
case
14
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_SUBTITLE2 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_SUBTITLE2
;
break
;
case
15
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_PCR2 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_PCR2
;
break
;
/* Forth device */
case
16
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_VIDEO3 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_VIDEO3
;
break
;
case
1
1
:
case
1
7
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_AUDIO3 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_AUDIO3
;
break
;
case
18
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_TELETEXT3 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_TELETEXT3
;
break
;
case
19
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_SUBTITLE3 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_SUBTITLE3
;
break
;
case
20
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_PCR3 for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_PCR3
;
break
;
/* Usually used by Nova cards */
case
21
:
msg_Dbg
(
p_input
,
"ioctl_SetDMXFilter: DMX_PES_OTHER for PMT %d"
,
i_pid
);
s_filter_params
.
pes_type
=
DMX_PES_OTHER
;
break
;
/* What to do with i? */
default:
msg_Err
(
p_input
,
"trying to set PMT id to=%d for unknown type %d"
,
i_pid
,
i_type
);
break
;
...
...
modules/access/dvb/qpsk.c
View file @
51c3cea1
...
...
@@ -99,7 +99,7 @@ void E_(Close) ( vlc_object_t * );
vlc_module_begin
();
add_category_hint
(
N_
(
"Input"
),
NULL
,
VLC_FALSE
);
add_integer
(
"adapter"
,
1
,
NULL
,
ADAPTER_TEXT
,
ADAPTER_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"adapter"
,
0
,
NULL
,
ADAPTER_TEXT
,
ADAPTER_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"device"
,
0
,
NULL
,
DEVICE_TEXT
,
DEVICE_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"frequency"
,
11954
,
NULL
,
FREQ_TEXT
,
FREQ_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"polarization"
,
0
,
NULL
,
POL_TEXT
,
POL_LONGTEXT
,
VLC_FALSE
);
...
...
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