Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e2fc6acb
Commit
e2fc6acb
authored
May 07, 2004
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring of dvb.c and access.c. Coding style and messages cleanup.
parent
82957718
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
607 additions
and
641 deletions
+607
-641
modules/access/dvb/access.c
modules/access/dvb/access.c
+279
-199
modules/access/dvb/dvb.c
modules/access/dvb/dvb.c
+274
-419
modules/access/dvb/dvb.h
modules/access/dvb/dvb.h
+43
-17
modules/access/dvb/qpsk.c
modules/access/dvb/qpsk.c
+11
-6
No files found.
modules/access/dvb/access.c
View file @
e2fc6acb
This diff is collapsed.
Click to expand it.
modules/access/dvb/dvb.c
View file @
e2fc6acb
This diff is collapsed.
Click to expand it.
modules/access/dvb/dvb.h
View file @
e2fc6acb
...
...
@@ -30,28 +30,54 @@
#define FRONTEND "/dev/dvb/adapter%d/frontend%d"
#define DVR "/dev/dvb/adapter%d/dvr%d"
/*****************************************************************************
* DVB input data structure
*****************************************************************************/
typedef
struct
{
int
i_frontend
;
unsigned
int
u_adapter
;
unsigned
int
u_device
;
unsigned
int
u_freq
;
unsigned
int
u_srate
;
unsigned
int
u_lnb_lof1
;
unsigned
int
u_lnb_lof2
;
unsigned
int
u_lnb_slof
;
int
i_bandwidth
;
int
i_modulation
;
int
i_guard
;
int
i_transmission
;
int
i_hierarchy
;
int
i_polarisation
;
int
i_fec
;
int
i_code_rate_HP
;
int
i_code_rate_LP
;
vlc_bool_t
b_diseqc
;
vlc_bool_t
b_probe
;
input_socket_t
*
p_satellite
;
}
input_dvb_t
;
/*****************************************************************************
* Prototypes
*****************************************************************************/
int
ioctl_SetQPSKFrontend
(
input_thread_t
*
p_input
,
struct
dvb_frontend_parameters
fep
,
int
b_polarisation
,
unsigned
int
u_lnb_lof1
,
unsigned
int
u_lnb_lof2
,
unsigned
int
u_lnb_slof
,
unsigned
int
u_adapter
,
unsigned
int
u_device
);
int
ioctl_SetOFDMFrontend
(
input_thread_t
*
p_input
,
struct
dvb_frontend_parameters
fep
,
unsigned
int
u_adapter
,
unsigned
int
u_device
);
int
ioctl_SetQAMFrontend
(
input_thread_t
*
p_input
,
struct
dvb_frontend_parameters
fep
,
unsigned
int
u_adapter
,
unsigned
int
u_device
);
int
ioctl_SetDMXFilter
(
input_thread_t
*
p_input
,
int
i_pid
,
int
*
pi_fd
,
int
i_type
,
unsigned
int
u_adapter
,
unsigned
int
u_device
);
int
ioctl_UnsetDMXFilter
(
input_thread_t
*
p_input
,
int
pi_fd
);
int
ioctl_InfoFrontend
(
input_thread_t
*
p_input
,
struct
dvb_frontend_info
*
info
,
unsigned
int
u_adapter
,
unsigned
int
u_device
);
int
ioctl_SetQPSKFrontend
(
input_thread_t
*
p_input
,
struct
dvb_frontend_parameters
fep
);
int
ioctl_SetOFDMFrontend
(
input_thread_t
*
p_input
,
struct
dvb_frontend_parameters
fep
);
int
ioctl_SetQAMFrontend
(
input_thread_t
*
p_input
,
struct
dvb_frontend_parameters
fep
);
int
ioctl_SetDMXFilter
(
input_thread_t
*
p_input
,
int
i_pid
,
int
*
pi_fd
,
int
i_type
);
int
ioctl_UnsetDMXFilter
(
input_thread_t
*
p_input
,
int
pi_fd
);
int
ioctl_InfoFrontend
(
input_thread_t
*
p_input
,
struct
dvb_frontend_info
*
info
);
/*****************************************************************************
* dvb argument helper functions
*****************************************************************************/
fe_bandwidth_t
dvb_DecodeBandwidth
(
input_thread_t
*
p_input
,
int
bandwidth
);
fe_code_rate_t
dvb_DecodeFEC
(
input_thread_t
*
p_input
,
int
fec
);
fe_modulation_t
dvb_DecodeModulation
(
input_thread_t
*
p_input
,
int
modulation
);
fe_transmit_mode_t
dvb_DecodeTransmission
(
input_thread_t
*
p_input
,
int
transmission
);
fe_guard_interval_t
dvb_DecodeGuardInterval
(
input_thread_t
*
p_input
,
int
guard
);
fe_hierarchy_t
dvb_DecodeHierarchy
(
input_thread_t
*
p_input
,
int
hierarchy
);
fe_spectral_inversion_t
dvb_DecodeInversion
(
input_thread_t
*
p_input
,
int
inversion
);
fe_bandwidth_t
dvb_DecodeBandwidth
(
input_thread_t
*
p_input
,
int
bandwidth
);
fe_code_rate_t
dvb_DecodeFEC
(
input_thread_t
*
p_input
,
int
fec
);
fe_modulation_t
dvb_DecodeModulation
(
input_thread_t
*
p_input
,
int
modulation
);
fe_transmit_mode_t
dvb_DecodeTransmission
(
input_thread_t
*
p_input
,
int
transmission
);
fe_guard_interval_t
dvb_DecodeGuardInterval
(
input_thread_t
*
p_input
,
int
guard
);
fe_hierarchy_t
dvb_DecodeHierarchy
(
input_thread_t
*
p_input
,
int
hierarchy
);
fe_spectral_inversion_t
dvb_DecodeInversion
(
input_thread_t
*
p_input
,
int
inversion
);
modules/access/dvb/qpsk.c
View file @
e2fc6acb
...
...
@@ -47,7 +47,7 @@ void E_(Close) ( vlc_object_t * );
#define DEVICE_TEXT N_("Device number to use on adapter")
#define DEVICE_LONGTEXT ""
#define FREQ_TEXT N_("Satellite transponder frequency
in kHz for DVB-S and in Hz for DVB-C/T
")
#define FREQ_TEXT N_("Satellite transponder frequency
for DVB-S (kHz) and for DVB-C/T (Hz)
")
#define FREQ_LONGTEXT ""
#define POL_TEXT N_("Satellite transponder polarization")
...
...
@@ -99,12 +99,14 @@ void E_(Close) ( vlc_object_t * );
vlc_module_begin
();
set_description
(
_
(
"DVB input with v4l2 support"
)
);
/* General options */
add_bool
(
"probe"
,
0
,
NULL
,
PROBE_TEXT
,
PROBE_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"
,
11954000
,
NULL
,
FREQ_TEXT
,
FREQ_LONGTEXT
,
VLC_FALSE
);
/* DVB-S (satellite) */
add_integer
(
"polarization"
,
0
,
NULL
,
POL_TEXT
,
POL_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"fec"
,
3
,
NULL
,
FEC_TEXT
,
FEC_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"symbol-rate"
,
27500000
,
NULL
,
SRATE_TEXT
,
SRATE_LONGTEXT
,
...
...
@@ -116,7 +118,7 @@ vlc_module_begin();
VLC_TRUE
);
add_integer
(
"lnb-slof"
,
11700000
,
NULL
,
LNB_SLOF_TEXT
,
LNB_SLOF_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"probe"
,
0
,
NULL
,
PROBE_TEXT
,
PROBE_LONGTEXT
,
VLC_FALSE
);
/* DVB-T (terrestrial) */
add_integer
(
"code-rate-hp"
,
9
,
NULL
,
CODE_RATE_HP_TEXT
,
CODE_RATE_HP_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"code-rate-lp"
,
9
,
NULL
,
CODE_RATE_LP_TEXT
,
...
...
@@ -130,12 +132,15 @@ vlc_module_begin();
TRANSMISSION_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"hierarchy"
,
0
,
NULL
,
HIERARCHY_TEXT
,
HIERARCHY_LONGTEXT
,
VLC_TRUE
);
/* short cuts */
set_capability
(
"access"
,
0
);
add_shortcut
(
"dvb"
);
/* General DVB-C/S/T MRL */
add_shortcut
(
"dvb-s"
);
/* DVB-S (satillite) */
add_shortcut
(
"qpsk"
);
add_shortcut
(
"dvb-c"
);
/* DVB-C (cable) */
add_shortcut
(
"cable"
);
add_shortcut
(
"dvb-t"
);
/* DVB-T (terrestrial) */
add_shortcut
(
"terrestrial"
);
add_shortcut
(
"dvb"
);
add_shortcut
(
"satellite"
);
add_shortcut
(
"satellite"
);
/* compatibility with the interface. */
set_callbacks
(
E_
(
Open
),
E_
(
Close
)
);
vlc_module_end
();
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