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
407007d7
Commit
407007d7
authored
May 11, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTV: common support for DVB-T2
parent
d1627ea8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
8 deletions
+32
-8
modules/access/dtv/access.c
modules/access/dtv/access.c
+21
-7
modules/access/dtv/bdagraph.cpp
modules/access/dtv/bdagraph.cpp
+7
-0
modules/access/dtv/dtv.h
modules/access/dtv/dtv.h
+4
-1
No files found.
modules/access/dtv/access.c
View file @
407007d7
...
...
@@ -108,26 +108,26 @@ static const char *const code_rate_user[] = { N_("Automatic"),
#define TRANSMISSION_TEXT N_("Transmission mode")
const
int
transmission_vlc
[]
=
{
-
1
,
2
,
4
,
8
,
/*16, 32,*/
1
,
2
,
4
,
8
,
16
,
32
,
};
static
const
char
*
const
transmission_user
[]
=
{
N_
(
"Automatic"
),
"
2k"
,
"4k"
,
"8k"
,
/*"16k", "32k", */
"
1k"
,
"2k"
,
"4k"
,
"8k"
,
"16k"
,
"32k"
,
};
#define BANDWIDTH_TEXT N_("Bandwidth (MHz)")
const
int
bandwidth_vlc
[]
=
{
0
,
8
,
7
,
6
,
8
,
7
,
6
,
5
,
};
static
const
char
*
const
bandwidth_user
[]
=
{
N_
(
"Automatic"
),
N_
(
"8 MHz"
),
N_
(
"7 MHz"
),
N_
(
"6 MHz"
),
N_
(
"8 MHz"
),
N_
(
"7 MHz"
),
N_
(
"6 MHz"
),
N_
(
"5 MHz"
),
};
#define GUARD_TEXT N_("Guard interval")
const
char
*
const
guard_vlc
[]
=
{
""
,
/*"1/128",*/
"1/32"
,
"1/16"
,
/*"19/128",*/
"1/8"
,
/*"9/256",*/
"1/4"
,
"1/128"
,
"1/32"
,
"1/16"
,
"19/256"
,
"1/8"
,
"19/128"
,
"1/4"
,
};
static
const
char
*
const
guard_user
[]
=
{
N_
(
"Automatic"
),
/*"1/128",*/
"1/32"
,
"1/16"
,
/*"19/128",*/
"1/8"
,
/*"9/256",*/
"1/4"
,
"1/128"
,
"1/32"
,
"1/16"
,
"19/256"
,
"1/8"
,
"19/128"
,
"1/4"
,
};
#define HIERARCHY_TEXT N_("Hierarchy mode")
...
...
@@ -222,7 +222,7 @@ vlc_module_begin ()
set_callbacks
(
Open
,
Close
)
add_shortcut
(
"dtv"
,
"tv"
,
"dvb"
,
/* "radio", "dab",*/
"cable"
,
"dvb-c"
,
"satellite"
,
"dvb-s"
,
"dvb-s2"
,
"terrestrial"
,
"dvb-t"
,
"atsc"
,
"cqam"
)
"terrestrial"
,
"dvb-t"
,
"
dvb-t2"
,
"
atsc"
,
"cqam"
)
/* All options starting with dvb- can be overridden in the MRL, so they
* must all be "safe". Nevertheless, we do not mark as safe those that are
...
...
@@ -551,6 +551,8 @@ static const delsys_t *GuessSystem (const char *scheme, dvb_device_t *dev)
return
&
dvbs2
;
if
(
!
strcasecmp
(
scheme
,
"dvb-t"
))
return
&
dvbt
;
if
(
!
strcasecmp
(
scheme
,
"dvb-t2"
))
return
&
dvbt2
;
return
dvb_guess_system
(
dev
);
}
...
...
@@ -788,4 +790,16 @@ static int dvbt_setup (vlc_object_t *obj, dvb_device_t *dev, unsigned freq)
return
dvb_set_dvbt
(
dev
,
freq
,
mod
,
fec_hp
,
fec_lp
,
bw
,
tx
,
guard
,
h
);
}
static
int
dvbt2_setup
(
vlc_object_t
*
obj
,
dvb_device_t
*
dev
,
unsigned
freq
)
{
const
char
*
mod
=
var_InheritModulation
(
obj
);
uint32_t
fec
=
var_InheritCodeRate
(
obj
,
"dvb-fec"
);
uint32_t
guard
=
var_InheritGuardInterval
(
obj
);
uint32_t
bw
=
var_InheritInteger
(
obj
,
"dvb-bandwidth"
);
int
tx
=
var_InheritInteger
(
obj
,
"dvb-transmission"
);
return
dvb_set_dvbt2
(
dev
,
freq
,
mod
,
fec
,
bw
,
tx
,
guard
);
}
const
delsys_t
dvbt
=
{
.
setup
=
dvbt_setup
};
const
delsys_t
dvbt2
=
{
.
setup
=
dvbt2_setup
};
modules/access/dtv/bdagraph.cpp
View file @
407007d7
...
...
@@ -240,6 +240,13 @@ int dvb_set_dvbt (dvb_device_t *d, uint32_t freq, const char *mod,
bandwidth
,
transmission
,
guard
,
hierarchy
);
}
int
dvb_set_dvbt2
(
dvb_device_t
*
d
,
uint32_t
freq
,
const
char
*
mod
,
uint32_t
fec
,
uint32_t
bandwidth
,
int
transmission
,
uint32_t
guard
)
{
return
VLC_EGENERIC
;
}
/* ATSC */
int
dvb_set_atsc
(
dvb_device_t
*
d
,
uint32_t
freq
,
const
char
*
mod
)
{
...
...
modules/access/dtv/dtv.h
View file @
407007d7
...
...
@@ -28,7 +28,7 @@ extern "C" {
typedef
struct
delsys
delsys_t
;
extern
const
delsys_t
dvbc
,
dvbs
,
dvbs2
,
dvbt
,
atsc
,
cqam
;
extern
const
delsys_t
dvbc
,
dvbs
,
dvbs2
,
dvbt
,
dvbt2
,
atsc
,
cqam
;
typedef
struct
dvb_device
dvb_device_t
;
...
...
@@ -66,6 +66,9 @@ int dvb_set_sec (dvb_device_t *, uint32_t freq, char pol,
int
dvb_set_dvbt
(
dvb_device_t
*
,
uint32_t
freq
,
const
char
*
mod
,
uint32_t
fec_hp
,
uint32_t
fec_lp
,
uint32_t
bandwidth
,
int
transmission
,
uint32_t
guard
,
int
hierarchy
);
int
dvb_set_dvbt2
(
dvb_device_t
*
,
uint32_t
freq
,
const
char
*
mod
,
uint32_t
fec
,
uint32_t
bandwidth
,
int
transmission
,
uint32_t
guard
);
/* ATSC */
int
dvb_set_atsc
(
dvb_device_t
*
,
uint32_t
freq
,
const
char
*
mod
);
...
...
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