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
0a2447ba
Commit
0a2447ba
authored
Jul 30, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTV: add ISDB-T (untested and exclusing sound broadcasting)
parent
7f24aa81
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
165 additions
and
24 deletions
+165
-24
modules/access/dtv/access.c
modules/access/dtv/access.c
+108
-19
modules/access/dtv/bdagraph.cpp
modules/access/dtv/bdagraph.cpp
+8
-0
modules/access/dtv/dtv.h
modules/access/dtv/dtv.h
+6
-5
modules/access/dtv/linux.c
modules/access/dtv/linux.c
+43
-0
No files found.
modules/access/dtv/access.c
View file @
0a2447ba
This diff is collapsed.
Click to expand it.
modules/access/dtv/bdagraph.cpp
View file @
0a2447ba
...
...
@@ -250,6 +250,14 @@ int dvb_set_isdbs (dvb_device_t *, uint64_t /*freq*/, uint16_t /*ts_id*/)
return
VLC_EGENERIC
;
}
/* ISDB-T */
int
dvb_set_isdbt
(
dvb_device_t
*
,
uint32_t
/*freq*/
,
uint32_t
/*bandwidth*/
,
int
/*transmit_mode*/
,
uint32_t
/*guard*/
,
const
isdbt_layer_t
/*layers*/
[
3
])
{
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 @
0a2447ba
...
...
@@ -98,20 +98,21 @@ int dvb_set_isdbs (dvb_device_t *, uint64_t freq, uint16_t ts_id);
typedef
struct
isdbt_layer
{
const
char
*
modulation
;
const
char
*
code_rate
;
uint32_t
code_rate
;
uint8_t
segment_count
;
uint8_t
time_interleaving
;
}
isdbt_layer_t
;
int
dvb_set_isdbt
(
dvb_device_t
*
,
uint32_t
freq
,
uint32_t
bandwith
,
int
transmission
,
uint32_t
guard
,
const
isdbt_layer_t
[
3
]);
typedef
struct
isdbt_sound
{
uint8_t
subchannel_id
;
uint8_t
segment_index
;
uint8_t
segment_cound
;
uint8_t
segment_index
;
uint8_t
segment_count
;
}
isdbt_sound_t
;
int
dvb_set_isdbt
(
dvb_device_t
*
,
uint32_t
freq
,
const
isdbt_layer_t
*
a
,
const
isdbt_layer_t
*
b
,
const
isdbt_layer_t
*
c
,
const
isdbt_sound_t
*
sb
);
# ifdef __cplusplus
}
# endif
...
...
modules/access/dtv/linux.c
View file @
0a2447ba
...
...
@@ -928,6 +928,49 @@ int dvb_set_isdbs (dvb_device_t *d, uint64_t freq_Hz, uint16_t ts_id)
}
/*** ISDB-T ***/
static
int
dvb_set_isdbt_layer
(
dvb_device_t
*
d
,
unsigned
num
,
const
isdbt_layer_t
*
l
)
{
uint32_t
mod
=
dvb_parse_modulation
(
l
->
modulation
,
QAM_AUTO
);
uint32_t
fec
=
dvb_parse_fec
(
l
->
code_rate
);
uint32_t
count
=
l
->
segment_count
;
uint32_t
ti
=
l
->
time_interleaving
;
num
*=
DTV_ISDBT_LAYERB_FEC
-
DTV_ISDBT_LAYERA_FEC
;
return
dvb_set_props
(
d
,
5
,
DTV_DELIVERY_SYSTEM
,
SYS_ISDBT
,
DTV_ISDBT_LAYERA_FEC
+
num
,
fec
,
DTV_ISDBT_LAYERA_MODULATION
+
num
,
mod
,
DTV_ISDBT_LAYERA_SEGMENT_COUNT
+
num
,
count
,
DTV_ISDBT_LAYERA_TIME_INTERLEAVING
+
num
,
ti
);
}
int
dvb_set_isdbt
(
dvb_device_t
*
d
,
uint32_t
freq
,
uint32_t
bandwidth
,
int
transmit_mode
,
uint32_t
guard
,
const
isdbt_layer_t
layers
[
3
])
{
#if DVBv5(1)
bandwidth
=
dvb_parse_bandwidth
(
bandwidth
);
transmit_mode
=
dvb_parse_transmit_mode
(
transmit_mode
);
guard
=
dvb_parse_guard
(
guard
);
if
(
dvb_find_frontend
(
d
,
FE_OFDM
,
FE_IS_STUPID
))
return
-
1
;
if
(
dvb_set_props
(
d
,
5
,
DTV_CLEAR
,
0
,
DTV_DELIVERY_SYSTEM
,
SYS_ISDBT
,
DTV_FREQUENCY
,
freq
,
DTV_BANDWIDTH_HZ
,
bandwidth
,
DTV_GUARD_INTERVAL
,
guard
))
return
-
1
;
for
(
unsigned
i
=
0
;
i
<
3
;
i
++
)
if
(
dvb_set_isdbt_layer
(
d
,
i
,
layers
+
i
))
return
-
1
;
return
0
;
#else
# warning ISDB-T needs Linux DVB version 5.1 or later.
#endif
}
/*** ATSC ***/
int
dvb_set_atsc
(
dvb_device_t
*
d
,
uint32_t
freq
,
const
char
*
modstr
)
{
...
...
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