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
339e21d5
Commit
339e21d5
authored
Sep 29, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: introduce hqdn3d in the effects UI
parent
704ec204
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
234 additions
and
94 deletions
+234
-94
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+9
-3
modules/gui/qt4/ui/video_effects.ui
modules/gui/qt4/ui/video_effects.ui
+225
-91
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
339e21d5
...
...
@@ -203,11 +203,17 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
SETUP_VFILTER
(
mirror
)
SETUP_VFILTER
(
gaussianblur
)
SETUP_VFILTER_OPTION
(
gaussianbluSigmaSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
gaussianblu
r
SigmaSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
antiflicker
)
SETUP_VFILTER_OPTION
(
antiflickerSofteningSizeSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
hqdn3d
)
SETUP_VFILTER_OPTION
(
hqdn3dLumaSpatSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
hqdn3dLumaTempSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
hqdn3dChromaSpatSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
hqdn3dChromaTempSlider
,
valueChanged
(
int
)
)
if
(
module_exists
(
"atmo"
)
)
{
...
...
@@ -585,9 +591,9 @@ void ExtVideo::setWidgetValue( QObject *widget )
void
ExtVideo
::
updateFilterOptions
()
{
QString
module
=
ModuleFromWidgetName
(
sender
()
->
parent
()
);
//
std::cout << "Module name: " << module.toStdString() << std::endl
;
//
msg_Dbg( p_intf, "Module name: %s", qtu( module ) )
;
QString
option
=
OptionFromWidgetName
(
sender
()
);
//
std::cout << "Option name: " << option.toStdString() << std::endl
;
//
msg_Dbg( p_intf, "Option name: %s", qtu( option ) )
;
vlc_object_t
*
p_obj
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_intf
->
p_libvlc
,
qtu
(
module
)
);
...
...
modules/gui/qt4/ui/video_effects.ui
View file @
339e21d5
...
...
@@ -6,8 +6,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
550
</width>
<height>
3
27
</height>
<width>
654
</width>
<height>
3
45
</height>
</rect>
</property>
<property
name=
"currentIndex"
>
...
...
@@ -1554,11 +1554,57 @@
<attribute
name=
"title"
>
<string>
Advanced
</string>
</attribute>
<layout
class=
"QGridLayout"
name=
"gridLayout_12"
>
<item
row=
"3"
column=
"0"
rowspan=
"3"
>
<widget
class=
"QGroupBox"
name=
"motionblurEnable"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_7"
>
<item
row=
"2"
column=
"1"
rowspan=
"2"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<widget
class=
"QCheckBox"
name=
"anaglyphEnable"
>
<property
name=
"text"
>
<string>
Anaglyph 3D
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"mirrorEnable"
>
<property
name=
"text"
>
<string>
Mirror
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"psychedelicEnable"
>
<property
name=
"text"
>
<string>
Psychedelic
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"waveEnable"
>
<property
name=
"text"
>
<string>
Waves
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"rippleEnable"
>
<property
name=
"text"
>
<string>
Water effect
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"motiondetectEnable"
>
<property
name=
"text"
>
<string>
Motion detect
</string>
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QGroupBox"
name=
"gaussianblurEnable"
>
<property
name=
"title"
>
<string>
Motion
blur
</string>
<string>
Spatial
blur
</string>
</property>
<property
name=
"checkable"
>
<bool>
true
</bool>
...
...
@@ -1566,11 +1612,11 @@
<property
name=
"checked"
>
<bool>
false
</bool>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_1
6
"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_1
7
"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_3
4
"
>
<widget
class=
"QLabel"
name=
"label_3
5
"
>
<property
name=
"text"
>
<string>
Factor
</string>
<string>
Sigma
</string>
</property>
<property
name=
"buddy"
>
<cstring>
blurFactorSlider
</cstring>
...
...
@@ -1578,7 +1624,7 @@
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QSlider"
name=
"
blurFactor
Slider"
>
<widget
class=
"QSlider"
name=
"
gaussianblurSigma
Slider"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
...
...
@@ -1602,34 +1648,54 @@
</layout>
</widget>
</item>
<item
row=
"
3"
column=
"2
"
>
<widget
class=
"Q
CheckBox"
name=
"motiondetect
Enable"
>
<property
name=
"t
ext
"
>
<string>
Motion
detect
</string>
<item
row=
"
1"
column=
"0
"
>
<widget
class=
"Q
GroupBox"
name=
"motionblur
Enable"
>
<property
name=
"t
itle
"
>
<string>
Motion
blur
</string>
</property>
</widget>
</item>
<item
row=
"5"
column=
"2"
>
<widget
class=
"QCheckBox"
name=
"psychedelicEnable"
>
<property
name=
"checkable"
>
<bool>
true
</bool>
</property>
<property
name=
"checked"
>
<bool>
false
</bool>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_16"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_34"
>
<property
name=
"text"
>
<string>
Psychedelic
</string>
<string>
Factor
</string>
</property>
<property
name=
"buddy"
>
<cstring>
blurFactorSlider
</cstring>
</property>
</widget>
</item>
<item
row=
"9"
column=
"0"
>
<spacer
name=
"verticalSpacer_4"
>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QSlider"
name=
"blurFactorSlider"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
127
</number>
</property>
<property
name=
"value"
>
<number>
80
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Vertic
al
</enum>
<enum>
Qt::Horizont
al
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
20
</width>
<height>
40
</height>
</size>
<property
name=
"tickPosition"
>
<enum>
QSlider::TicksBelow
</enum>
</property>
</spacer>
<property
name=
"tickInterval"
>
<number>
16
</number>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
</layout>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QGroupBox"
name=
"antiflickerEnable"
>
<property
name=
"title"
>
<string>
Anti-Flickering
</string>
...
...
@@ -1676,16 +1742,10 @@
</layout>
</widget>
</item>
<item
row=
"2"
column=
"2"
>
<widget
class=
"QGroupBox"
name=
"cloneEnable"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"MinimumExpanding"
vsizetype=
"Preferred"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<item
row=
"0"
column=
"1"
rowspan=
"2"
>
<widget
class=
"QGroupBox"
name=
"hqdn3dEnable"
>
<property
name=
"title"
>
<string>
Clone
</string>
<string>
Denoiser
</string>
</property>
<property
name=
"checkable"
>
<bool>
true
</bool>
...
...
@@ -1693,61 +1753,115 @@
<property
name=
"checked"
>
<bool>
false
</bool>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_
7
"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_
12
"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_
9
"
>
<widget
class=
"QLabel"
name=
"label_
44
"
>
<property
name=
"text"
>
<string>
Number of clones
</string>
<string>
Spatial luma strength
</string>
</property>
<property
name=
"buddy"
>
<cstring>
cloneCountSpin
</cstring>
<cstring>
blurFactorSlider
</cstring>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QS
pinBox"
name=
"cloneCountSpin
"
>
<item
row=
"0"
column=
"1"
colspan=
"2"
>
<widget
class=
"QS
lider"
name=
"hqdn3dLumaSpatSlider
"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
127
</number>
</property>
<property
name=
"value"
>
<number>
2
</number>
<number>
80
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"tickPosition"
>
<enum>
QSlider::TicksBelow
</enum>
</property>
<property
name=
"tickInterval"
>
<number>
16
</number>
</property>
</widget>
</item>
</layout>
<item
row=
"1"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"label_45"
>
<property
name=
"text"
>
<string>
Temporal luma strength
</string>
</property>
<property
name=
"buddy"
>
<cstring>
blurFactorSlider
</cstring>
</property>
</widget>
</item>
<item
row=
"4"
column=
"2"
>
<widget
class=
"QCheckBox"
name=
"rippleEnable"
>
<item
row=
"1"
column=
"2"
>
<widget
class=
"QSlider"
name=
"hqdn3dLumaTempSlider"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
127
</number>
</property>
<property
name=
"value"
>
<number>
80
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"tickPosition"
>
<enum>
QSlider::TicksBelow
</enum>
</property>
<property
name=
"tickInterval"
>
<number>
16
</number>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"label_46"
>
<property
name=
"text"
>
<string>
Water effect
</string>
<string>
Spatial chroma strength
</string>
</property>
<property
name=
"buddy"
>
<cstring>
blurFactorSlider
</cstring>
</property>
</widget>
</item>
<item
row=
"6"
column=
"0"
rowspa
n=
"2"
>
<widget
class=
"QGroupBox"
name=
"gaussianblurEnable
"
>
<property
name=
"title
"
>
<string>
Spatial blur
</string
>
<item
row=
"2"
colum
n=
"2"
>
<widget
class=
"QSlider"
name=
"hqdn3dChromaSpatSlider
"
>
<property
name=
"minimum
"
>
<number>
1
</number
>
</property>
<property
name=
"checkable
"
>
<bool>
true
</bool
>
<property
name=
"maximum
"
>
<number>
127
</number
>
</property>
<property
name=
"checked
"
>
<bool>
false
</bool
>
<property
name=
"value
"
>
<number>
80
</number
>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_17"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_35"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"tickPosition"
>
<enum>
QSlider::TicksBelow
</enum>
</property>
<property
name=
"tickInterval"
>
<number>
16
</number>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_47"
>
<property
name=
"text"
>
<string>
Sigma
</string>
<string>
Temporal chroma strength
</string>
</property>
<property
name=
"buddy"
>
<cstring>
blurFactorSlider
</cstring>
</property>
</widget>
</item>
<item
row=
"
0"
column=
"1
"
>
<widget
class=
"QSlider"
name=
"
gaussianbluSigma
Slider"
>
<item
row=
"
3"
column=
"2
"
>
<widget
class=
"QSlider"
name=
"
hqdn3dChromaTemp
Slider"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
...
...
@@ -1771,25 +1885,45 @@
</layout>
</widget>
</item>
<item
row=
"6"
column=
"2"
>
<widget
class=
"QCheckBox"
name=
"mirrorEnable"
>
<item
row=
"3"
column=
"0"
>
<widget
class=
"QGroupBox"
name=
"cloneEnable"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"MinimumExpanding"
vsizetype=
"Preferred"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"title"
>
<string>
Clone
</string>
</property>
<property
name=
"checkable"
>
<bool>
true
</bool>
</property>
<property
name=
"checked"
>
<bool>
false
</bool>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_9"
>
<property
name=
"text"
>
<string>
Mirror
</string>
<string>
Number of clones
</string>
</property>
<property
name=
"buddy"
>
<cstring>
cloneCountSpin
</cstring>
</property>
</widget>
</item>
<item
row=
"7"
column=
"2"
>
<widget
class=
"QCheckBox"
name=
"waveEnable"
>
<property
name=
"text"
>
<string>
Waves
</string>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QSpinBox"
name=
"cloneCountSpin"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"value"
>
<number>
2
</number>
</property>
</widget>
</item>
<item
row=
"8"
column=
"2"
>
<widget
class=
"QCheckBox"
name=
"anaglyphEnable"
>
<property
name=
"text"
>
<string>
Anaglyph 3D
</string>
</property>
</layout>
</widget>
</item>
</layout>
...
...
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