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
5d5eeb9e
Commit
5d5eeb9e
authored
Mar 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: remove V4L1
parent
4b002b9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
60 deletions
+3
-60
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+1
-52
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+2
-4
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+0
-4
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
5d5eeb9e
...
...
@@ -65,7 +65,7 @@
.replaceInStrings( QRegExp("^"), "/dev/" ) \
);
static
const
char
*
psz_devModule
[]
=
{
"v4l
"
,
"v4l
2"
,
"pvr"
,
"dvb"
,
"bda"
,
static
const
char
*
psz_devModule
[]
=
{
"v4l2"
,
"pvr"
,
"dvb"
,
"bda"
,
"dshow"
,
"screen"
,
"jack"
};
/**************************************************************************
...
...
@@ -871,51 +871,6 @@ void CaptureOpenPanel::initialize()
CuMRL
(
v4l2StdBox
,
currentIndexChanged
(
int
)
);
}
/*******
* V4L *
*******/
if
(
module_exists
(
"v4l"
)
){
addModuleAndLayouts
(
V4L_DEVICE
,
v4l
,
"Video for Linux"
,
QGridLayout
);
/* V4l Main panel */
QLabel
*
v4lVideoDeviceLabel
=
new
QLabel
(
qtr
(
"Video device name"
)
);
v4lDevLayout
->
addWidget
(
v4lVideoDeviceLabel
,
0
,
0
);
v4lVideoDevice
=
new
QLineEdit
;
v4lDevLayout
->
addWidget
(
v4lVideoDevice
,
0
,
1
);
QLabel
*
v4lAudioDeviceLabel
=
new
QLabel
(
qtr
(
"Audio device name"
)
);
v4lDevLayout
->
addWidget
(
v4lAudioDeviceLabel
,
1
,
0
);
v4lAudioDevice
=
new
QLineEdit
;
v4lDevLayout
->
addWidget
(
v4lAudioDevice
,
1
,
1
);
/* V4l Props panel */
QLabel
*
v4lNormLabel
=
new
QLabel
(
qtr
(
"Norm"
)
);
v4lPropLayout
->
addWidget
(
v4lNormLabel
,
0
,
0
);
v4lNormBox
=
new
QComboBox
;
setfillVLCConfigCombo
(
"v4l-norm"
,
p_intf
,
v4lNormBox
);
v4lPropLayout
->
addWidget
(
v4lNormBox
,
0
,
1
);
QLabel
*
v4lFreqLabel
=
new
QLabel
(
qtr
(
"Frequency"
)
);
v4lPropLayout
->
addWidget
(
v4lFreqLabel
,
1
,
0
);
v4lFreq
=
new
QSpinBox
;
v4lFreq
->
setAlignment
(
Qt
::
AlignRight
);
v4lFreq
->
setSuffix
(
" kHz"
);
setSpinBoxFreq
(
v4lFreq
);
v4lPropLayout
->
addWidget
(
v4lFreq
,
1
,
1
);
v4lPropLayout
->
addItem
(
new
QSpacerItem
(
20
,
20
,
QSizePolicy
::
Expanding
),
2
,
0
,
2
,
1
);
/* v4l CONNECTs */
CuMRL
(
v4lVideoDevice
,
textChanged
(
const
QString
&
)
);
CuMRL
(
v4lAudioDevice
,
textChanged
(
const
QString
&
)
);
CuMRL
(
v4lFreq
,
valueChanged
(
int
)
);
CuMRL
(
v4lNormBox
,
currentIndexChanged
(
int
)
);
}
/*******
* JACK *
*******/
...
...
@@ -1197,12 +1152,6 @@ void CaptureOpenPanel::updateMRL()
emit
methodChanged
(
"dshow-caching"
);
break
;
#else
case
V4L_DEVICE
:
fileList
<<
"v4l://"
+
v4lVideoDevice
->
text
();
mrl
+=
" :input-slave=alsa://"
+
v4lAudioDevice
->
text
();
mrl
+=
" :v4l-norm="
+
QString
::
number
(
v4lNormBox
->
currentIndex
()
);
mrl
+=
" :v4l-frequency="
+
QString
::
number
(
v4lFreq
->
value
()
);
break
;
case
V4L2_DEVICE
:
fileList
<<
"v4l2://"
+
v4l2VideoDevice
->
currentText
();
mrl
+=
" :input-slave=alsa://"
+
v4l2AudioDevice
->
currentText
();
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
5d5eeb9e
...
...
@@ -48,7 +48,6 @@
enum
{
V4L_DEVICE
,
V4L2_DEVICE
,
PVR_DEVICE
,
DVB_DEVICE
,
...
...
@@ -211,11 +210,10 @@ private:
#else
QRadioButton
*
dvbs
,
*
dvbt
,
*
dvbc
;
QLabel
*
dvbBandLabel
,
*
dvbSrateLabel
;
QSpinBox
*
v4lFreq
,
*
pvrFreq
,
*
pvrBitr
;
QLineEdit
*
v4lVideoDevice
,
*
v4lAudioDevice
;
QSpinBox
*
pvrFreq
,
*
pvrBitr
;
QComboBox
*
v4l2VideoDevice
,
*
v4l2AudioDevice
;
QLineEdit
*
pvrDevice
,
*
pvrRadioDevice
;
QComboBox
*
v4l
NormBox
,
*
v4l
2StdBox
,
*
pvrNormBox
,
*
dvbBandBox
;
QComboBox
*
v4l2StdBox
,
*
pvrNormBox
,
*
dvbBandBox
;
QSpinBox
*
dvbCard
,
*
dvbFreq
,
*
dvbSrate
;
QSpinBox
*
jackChannels
,
*
jackCaching
;
QCheckBox
*
jackPace
,
*
jackConnect
;
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
5d5eeb9e
...
...
@@ -507,8 +507,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#ifdef WIN32
TestCaC
(
"dshow-caching"
);
#else
if
(
module_exists
(
"v4l"
))
TestCaC
(
"v4l-caching"
);
if
(
module_exists
(
"access_jack"
))
TestCaC
(
"jack-input-caching"
);
if
(
module_exists
(
"v4l2"
))
...
...
@@ -803,8 +801,6 @@ void SPrefsPanel::apply()
#ifdef WIN32
CaC
(
"dshow-caching"
);
#else
if
(
module_exists
(
"v4l"
))
CaC
(
"v4l-caching"
);
if
(
module_exists
(
"access_jack"
))
CaC
(
"jack-input-caching"
);
if
(
module_exists
(
"v4l2"
))
...
...
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