Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a7c86cab
Commit
a7c86cab
authored
Oct 09, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4 capture card dialog: lists v4l2
parent
731efe54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+37
-0
modules/gui/qt4/components/open.hpp
modules/gui/qt4/components/open.hpp
+3
-1
No files found.
modules/gui/qt4/components/open.cpp
View file @
a7c86cab
...
...
@@ -553,6 +553,37 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
CuMRL
(
v4lFreq
,
valueChanged
(
int
)
);
CuMRL
(
v4lNormBox
,
currentIndexChanged
(
int
)
);
/*******
* V4L2*
*******/
addModuleAndLayouts
(
V4L2_DEVICE
,
v4l2
,
"Video for Linux 2"
);
/* V4l Main panel */
QLabel
*
v4l2VideoDeviceLabel
=
new
QLabel
(
qtr
(
"Video device name"
)
);
v4l2DevLayout
->
addWidget
(
v4l2VideoDeviceLabel
,
0
,
0
);
v4l2VideoDevice
=
new
QLineEdit
;
v4l2DevLayout
->
addWidget
(
v4l2VideoDevice
,
0
,
1
);
QLabel
*
v4l2AudioDeviceLabel
=
new
QLabel
(
qtr
(
"Audio device name"
)
);
v4l2DevLayout
->
addWidget
(
v4l2AudioDeviceLabel
,
1
,
0
);
v4l2AudioDevice
=
new
QLineEdit
;
v4l2DevLayout
->
addWidget
(
v4l2AudioDevice
,
1
,
1
);
/* v4l2 Props panel */
QLabel
*
v4l2StdLabel
=
new
QLabel
(
qtr
(
"Standard"
)
);
v4l2PropLayout
->
addWidget
(
v4l2StdLabel
,
0
,
0
);
v4l2StdBox
=
new
QComboBox
;
setfillVLCConfigCombo
(
"v4l2-standard"
,
p_intf
,
v4l2StdBox
);
v4l2PropLayout
->
addWidget
(
v4l2StdBox
,
0
,
1
);
/* v4l2 CONNECTs */
CuMRL
(
v4l2VideoDevice
,
textChanged
(
QString
)
);
CuMRL
(
v4l2AudioDevice
,
textChanged
(
QString
)
);
CuMRL
(
v4l2StdBox
,
currentIndexChanged
(
int
)
);
/*******
* JACK *
*******/
...
...
@@ -856,6 +887,12 @@ void CaptureOpenPanel::updateMRL()
mrl
+=
" :v4l-norm="
+
QString
(
"%1"
).
arg
(
v4lNormBox
->
currentIndex
()
);
mrl
+=
" :v4l-frequency="
+
QString
(
"%1"
).
arg
(
v4lFreq
->
value
()
);
break
;
case
V4L2_DEVICE
:
mrl
=
"v4l2://"
;
mrl
+=
" :v4l2-dev="
+
v4l2VideoDevice
->
text
();
mrl
+=
" :v4l2-adev="
+
v4l2AudioDevice
->
text
();
mrl
+=
" :v4l2-standard="
+
QString
(
"%1"
).
arg
(
v4l2StdBox
->
currentIndex
()
);
break
;
case
JACK_DEVICE
:
mrl
=
"jack://"
;
mrl
+=
"channels="
+
QString
(
"%1"
).
arg
(
jackChannels
->
value
()
);
...
...
modules/gui/qt4/components/open.hpp
View file @
a7c86cab
...
...
@@ -47,6 +47,7 @@
enum
{
V4L_DEVICE
,
V4L2_DEVICE
,
PVR_DEVICE
,
DVB_DEVICE
,
BDA_DEVICE
,
...
...
@@ -154,8 +155,9 @@ private:
QRadioButton
*
bdas
,
*
bdat
,
*
bdac
;
QSpinBox
*
v4lFreq
,
*
pvrFreq
,
*
pvrBitr
;
QLineEdit
*
v4lVideoDevice
,
*
v4lAudioDevice
;
QLineEdit
*
v4l2VideoDevice
,
*
v4l2AudioDevice
;
QLineEdit
*
pvrDevice
,
*
pvrRadioDevice
;
QComboBox
*
v4lNormBox
,
*
pvrNormBox
,
*
bdaBandBox
;
QComboBox
*
v4lNormBox
,
*
v4l2StdBox
,
*
pvrNormBox
,
*
bdaBandBox
;
QSpinBox
*
dvbCard
,
*
dvbFreq
,
*
dvbSrate
;
QSpinBox
*
bdaCard
,
*
bdaFreq
,
*
bdaSrate
;
QSpinBox
*
jackChannels
,
*
jackCaching
;
...
...
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