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
a2705d44
Commit
a2705d44
authored
Nov 20, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTV: add ISDB-C (ITU J.83 Annex C) untested support
parent
24d56264
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
2 deletions
+44
-2
modules/access/dtv/access.c
modules/access/dtv/access.c
+17
-2
modules/access/dtv/bdagraph.cpp
modules/access/dtv/bdagraph.cpp
+7
-0
modules/access/dtv/dtv.h
modules/access/dtv/dtv.h
+4
-0
modules/access/dtv/linux.c
modules/access/dtv/linux.c
+16
-0
No files found.
modules/access/dtv/access.c
View file @
a2705d44
...
...
@@ -230,7 +230,7 @@ vlc_module_begin ()
set_capability
(
"access"
,
0
)
set_callbacks
(
Open
,
Close
)
add_shortcut
(
"dtv"
,
"tv"
,
"dvb"
,
/* "radio", "dab",*/
"cable"
,
"dvb-c"
,
"cqam"
"cable"
,
"dvb-c"
,
"cqam"
,
"isdb-c"
,
"satellite"
,
"dvb-s"
,
"dvb-s2"
,
"isdb-s"
,
"terrestrial"
,
"dvb-t"
,
"dvb-t2"
,
"isdb-t"
,
"atsc"
)
...
...
@@ -405,7 +405,7 @@ typedef struct delsys
}
delsys_t
;
static
const
delsys_t
dvbc
,
dvbs
,
dvbs2
,
dvbt
,
dvbt2
;
static
const
delsys_t
isdbs
,
isdbt
;
static
const
delsys_t
isdb
c
,
isdb
s
,
isdbt
;
static
const
delsys_t
atsc
,
cqam
;
static
block_t
*
Read
(
access_t
*
);
...
...
@@ -621,6 +621,8 @@ static const delsys_t *GuessSystem (const char *scheme, dvb_device_t *dev)
return
&
dvbt
;
if
(
!
strcasecmp
(
scheme
,
"dvb-t2"
))
return
&
dvbt2
;
if
(
!
strcasecmp
(
scheme
,
"isdb-c"
))
return
&
isdbc
;
if
(
!
strcasecmp
(
scheme
,
"isdb-s"
))
return
&
isdbs
;
if
(
!
strcasecmp
(
scheme
,
"isdb-t"
))
...
...
@@ -886,6 +888,19 @@ static const delsys_t dvbt = { .setup = dvbt_setup };
static
const
delsys_t
dvbt2
=
{
.
setup
=
dvbt2_setup
};
/*** ISDB-C ***/
static
int
isdbc_setup
(
vlc_object_t
*
obj
,
dvb_device_t
*
dev
,
uint64_t
freq
)
{
const
char
*
mod
=
var_InheritModulation
(
obj
,
"dvb-modulation"
);
uint32_t
fec
=
var_InheritCodeRate
(
obj
,
"dvb-fec"
);
unsigned
srate
=
var_InheritInteger
(
obj
,
"dvb-srate"
);
return
dvb_set_isdbc
(
dev
,
freq
,
mod
,
srate
,
fec
);
}
static
const
delsys_t
isdbc
=
{
.
setup
=
isdbc_setup
};
/*** ISDB-S ***/
static
int
isdbs_setup
(
vlc_object_t
*
obj
,
dvb_device_t
*
dev
,
uint64_t
freq
)
{
...
...
modules/access/dtv/bdagraph.cpp
View file @
a2705d44
...
...
@@ -245,6 +245,13 @@ int dvb_set_dvbt2 (dvb_device_t *, uint32_t /*freq*/, const char * /*mod*/,
return
VLC_EGENERIC
;
}
/* ISDB-C */
int
dvb_set_isdbc
(
dvb_device_t
*
,
uint32_t
freq
,
const
char
*
mod
,
uint32_t
srate
,
uint32_t
fec
)
{
return
VLC_EGENERIC
;
}
/* ISDB-S */
int
dvb_set_isdbs
(
dvb_device_t
*
,
uint64_t
/*freq*/
,
uint16_t
/*ts_id*/
)
{
...
...
modules/access/dtv/dtv.h
View file @
a2705d44
...
...
@@ -90,6 +90,10 @@ int dvb_set_dvbt2 (dvb_device_t *, uint32_t freq, const char *mod,
int
dvb_set_atsc
(
dvb_device_t
*
,
uint32_t
freq
,
const
char
*
mod
);
int
dvb_set_cqam
(
dvb_device_t
*
,
uint32_t
freq
,
const
char
*
mod
);
/* ISDB-C */
int
dvb_set_isdbc
(
dvb_device_t
*
,
uint32_t
freq
,
const
char
*
mod
,
uint32_t
srate
,
uint32_t
fec
);
/* ISDB-S */
/* TODO: modulation? */
int
dvb_set_isdbs
(
dvb_device_t
*
,
uint64_t
freq
,
uint16_t
ts_id
);
...
...
modules/access/dtv/linux.c
View file @
a2705d44
...
...
@@ -911,6 +911,22 @@ int dvb_set_dvbt2 (dvb_device_t *d, uint32_t freq, const char *modstr,
}
/*** ISDB-C ***/
int
dvb_set_isdbc
(
dvb_device_t
*
d
,
uint32_t
freq
,
const
char
*
modstr
,
uint32_t
srate
,
uint32_t
fec
)
{
unsigned
mod
=
dvb_parse_modulation
(
modstr
,
QAM_AUTO
);
fec
=
dvb_parse_fec
(
fec
);
if
(
dvb_find_frontend
(
d
,
FE_QAM
,
FE_IS_STUPID
))
return
-
1
;
return
dvb_set_props
(
d
,
6
,
DTV_CLEAR
,
0
,
DTV_DELIVERY_SYSTEM
,
SYS_DVBC_ANNEX_AC
,
DTV_FREQUENCY
,
freq
,
DTV_MODULATION
,
mod
,
DTV_SYMBOL_RATE
,
srate
,
DTV_INNER_FEC
,
fec
);
}
/*** ISDB-S ***/
int
dvb_set_isdbs
(
dvb_device_t
*
d
,
uint64_t
freq_Hz
,
uint16_t
ts_id
)
{
...
...
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