Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
695b9cd7
Commit
695b9cd7
authored
Mar 27, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: add modulations for DVB-S2
parent
c75171d7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
14 deletions
+25
-14
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+24
-13
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+1
-1
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
695b9cd7
...
...
@@ -992,16 +992,25 @@ void CaptureOpenPanel::initialize()
dvbPropLayout
->
addWidget
(
dvbModLabel
,
2
,
0
);
dvbQamBox
=
new
QComboBox
;
dvbQamBox
->
addItem
(
qtr
(
"Automatic"
),
0
);
dvbQamBox
->
addItem
(
"256-QAM"
,
256
);
dvbQamBox
->
addItem
(
"128-QAM"
,
128
);
dvbQamBox
->
addItem
(
"64-QAM"
,
64
);
dvbQamBox
->
addItem
(
"32-QAM"
,
32
);
dvbQamBox
->
addItem
(
"16-QAM"
,
16
);
dvbQamBox
->
addItem
(
qtr
(
"Automatic"
),
qfu
(
"QAM"
)
);
dvbQamBox
->
addItem
(
"256-QAM"
,
qfu
(
"256QAM"
)
);
dvbQamBox
->
addItem
(
"128-QAM"
,
qfu
(
"128QAM"
)
);
dvbQamBox
->
addItem
(
"64-QAM"
,
qfu
(
"64QAM"
)
);
dvbQamBox
->
addItem
(
"32-QAM"
,
qfu
(
"32QAM"
)
);
dvbQamBox
->
addItem
(
"16-QAM"
,
qfu
(
"16QAM"
)
);
dvbPropLayout
->
addWidget
(
dvbQamBox
,
2
,
1
);
dvbPskBox
=
new
QComboBox
;
dvbPskBox
->
addItem
(
"QPSK"
,
qfu
(
"QPSK"
)
);
dvbPskBox
->
addItem
(
"DQPSK"
,
qfu
(
"DQPSK"
)
);
dvbPskBox
->
addItem
(
"8-PSK"
,
qfu
(
"8PSK"
)
);
dvbPskBox
->
addItem
(
"16-APSK"
,
qfu
(
"16APSK"
)
);
dvbPskBox
->
addItem
(
"32-APSK"
,
qfu
(
"32APSK"
)
);
dvbPropLayout
->
addWidget
(
dvbPskBox
,
2
,
1
);
dvbModLabel
->
hide
();
dvbQamBox
->
hide
();
dvbPskBox
->
hide
();
dvbBandLabel
=
new
QLabel
(
qtr
(
"Bandwidth"
)
);
dvbPropLayout
->
addWidget
(
dvbBandLabel
,
2
,
0
);
...
...
@@ -1024,6 +1033,7 @@ void CaptureOpenPanel::initialize()
CuMRL
(
dvbFreq
,
valueChanged
(
int
)
);
CuMRL
(
dvbSrate
,
valueChanged
(
int
)
);
CuMRL
(
dvbQamBox
,
currentIndexChanged
(
int
)
);
CuMRL
(
dvbPskBox
,
currentIndexChanged
(
int
)
);
CuMRL
(
dvbBandBox
,
currentIndexChanged
(
int
)
);
BUTTONACT
(
dvbc
,
updateButtons
()
);
...
...
@@ -1153,13 +1163,11 @@ void CaptureOpenPanel::updateMRL()
mrl
+=
"frequency="
+
QString
::
number
(
dvbFreq
->
value
()
);
if
(
dvbc
->
isChecked
()
||
cqam
->
isChecked
()
)
{
unsigned
qam
=
dvbQamBox
->
itemData
(
dvbQamBox
->
currentIndex
()
).
toInt
();
if
(
qam
!=
0
)
mrl
+=
":modulation="
+
QString
::
number
(
qam
)
+
"QAM"
;
mrl
+=
":srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
}
mrl
+=
":modulation="
+
dvbQamBox
->
itemData
(
dvbQamBox
->
currentIndex
()
).
toString
();
if
(
dvbs2
->
isChecked
()
)
mrl
+=
":modulation="
+
dvbPskBox
->
itemData
(
dvbPskBox
->
currentIndex
()
).
toString
();
if
(
dvbc
->
isChecked
()
||
dvbs
->
isChecked
()
||
dvbs2
->
isChecked
()
)
mrl
+=
":srate="
+
QString
::
number
(
dvbSrate
->
value
()
);
if
(
dvbt
->
isChecked
()
)
...
...
@@ -1205,6 +1213,7 @@ void CaptureOpenPanel::updateButtons()
dvbSrate
->
hide
();
dvbSrateLabel
->
hide
();
dvbQamBox
->
hide
();
dvbPskBox
->
hide
();
dvbModLabel
->
hide
();
dvbBandBox
->
hide
();
dvbBandLabel
->
hide
();
...
...
@@ -1225,6 +1234,8 @@ void CaptureOpenPanel::updateButtons()
{
dvbSrate
->
show
();
dvbSrateLabel
->
show
();
dvbPskBox
->
show
();
dvbModLabel
->
show
();
}
else
if
(
dvbt
->
isChecked
()
)
{
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
695b9cd7
...
...
@@ -215,7 +215,7 @@ private:
#endif
QRadioButton
*
dvbc
,
*
dvbs
,
*
dvbs2
,
*
dvbt
,
*
atsc
,
*
cqam
;
QLabel
*
dvbBandLabel
,
*
dvbSrateLabel
,
*
dvbModLabel
;
QComboBox
*
dvbQamBox
,
*
dvbBandBox
;
QComboBox
*
dvbQamBox
,
*
dvb
PskBox
,
*
dvb
BandBox
;
QSpinBox
*
dvbCard
,
*
dvbFE
,
*
dvbFreq
,
*
dvbSrate
;
QDoubleSpinBox
*
screenFPS
;
...
...
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