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
a75b97ad
Commit
a75b97ad
authored
Nov 19, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed confusing interface behavior of the crop filter controls
parent
23927fbb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
97 deletions
+132
-97
extras/package/macosx/Resources/English.lproj/VideoEffects.xib
...s/package/macosx/Resources/English.lproj/VideoEffects.xib
+90
-93
modules/gui/macosx/VideoEffects.h
modules/gui/macosx/VideoEffects.h
+4
-0
modules/gui/macosx/VideoEffects.m
modules/gui/macosx/VideoEffects.m
+38
-4
No files found.
extras/package/macosx/Resources/English.lproj/VideoEffects.xib
View file @
a75b97ad
...
...
@@ -717,7 +717,7 @@
<object
class=
"BGHUDTabViewItem"
id=
"52756061"
>
<string
key=
"NSIdentifier"
>
crop
</string>
<object
class=
"NSView"
key=
"NSView"
id=
"838226260"
>
<
nil
key=
"NSNextResponder
"
/>
<
reference
key=
"NSNextResponder"
ref=
"898819366
"
/>
<int
key=
"NSvFlags"
>
256
</int>
<object
class=
"NSMutableArray"
key=
"NSSubviews"
>
<bool
key=
"EncodedWithXMLCoder"
>
YES
</bool>
...
...
@@ -1220,6 +1220,7 @@
</object>
</object>
<string
key=
"NSFrame"
>
{{10, 33}, {638, 197}}
</string>
<reference
key=
"NSSuperview"
ref=
"898819366"
/>
</object>
<string
key=
"NSLabel"
>
Crop
</string>
<reference
key=
"NSColor"
ref=
"279270326"
/>
...
...
@@ -1698,7 +1699,7 @@
<object
class=
"NSTabViewItem"
id=
"133975353"
>
<string
key=
"NSIdentifier"
>
color
</string>
<object
class=
"NSView"
key=
"NSView"
id=
"10628740"
>
<
reference
key=
"NSNextResponder"
ref=
"898819366
"
/>
<
nil
key=
"NSNextResponder
"
/>
<int
key=
"NSvFlags"
>
256
</int>
<object
class=
"NSMutableArray"
key=
"NSSubviews"
>
<bool
key=
"EncodedWithXMLCoder"
>
YES
</bool>
...
...
@@ -2743,7 +2744,6 @@
</object>
</object>
<string
key=
"NSFrame"
>
{{10, 33}, {638, 197}}
</string>
<reference
key=
"NSSuperview"
ref=
"898819366"
/>
</object>
<string
key=
"NSLabel"
>
Color
</string>
<reference
key=
"NSColor"
ref=
"279270326"
/>
...
...
@@ -3457,7 +3457,7 @@
<reference
key=
"NSTabView"
ref=
"898819366"
/>
</object>
</object>
<reference
key=
"NSSelectedTabViewItem"
ref=
"
133975353
"
/>
<reference
key=
"NSSelectedTabViewItem"
ref=
"
52756061
"
/>
<object
class=
"NSFont"
key=
"NSFont"
>
<string
key=
"NSName"
>
LucidaGrande
</string>
<double
key=
"NSSize"
>
13
</double>
...
...
@@ -3469,7 +3469,7 @@
<nil
key=
"themeKey"
/>
<object
class=
"NSMutableArray"
key=
"NSSubviews"
>
<bool
key=
"EncodedWithXMLCoder"
>
YES
</bool>
<reference
ref=
"
1062874
0"
/>
<reference
ref=
"
83822626
0"
/>
</object>
</object>
</object>
...
...
@@ -3488,38 +3488,6 @@
<object
class=
"IBObjectContainer"
key=
"IBDocument.Objects"
>
<object
class=
"NSMutableArray"
key=
"connectionRecords"
>
<bool
key=
"EncodedWithXMLCoder"
>
YES
</bool>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
takeIntegerValueFrom:
</string>
<reference
key=
"source"
ref=
"411363183"
/>
<reference
key=
"destination"
ref=
"726085921"
/>
</object>
<int
key=
"connectionID"
>
82
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
takeIntegerValueFrom:
</string>
<reference
key=
"source"
ref=
"190644777"
/>
<reference
key=
"destination"
ref=
"308507287"
/>
</object>
<int
key=
"connectionID"
>
91
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
takeIntegerValueFrom:
</string>
<reference
key=
"source"
ref=
"950709956"
/>
<reference
key=
"destination"
ref=
"1010555455"
/>
</object>
<int
key=
"connectionID"
>
99
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
takeIntegerValueFrom:
</string>
<reference
key=
"source"
ref=
"785525140"
/>
<reference
key=
"destination"
ref=
"764981534"
/>
</object>
<int
key=
"connectionID"
>
108
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
takeIntegerValueFrom:
</string>
...
...
@@ -4776,6 +4744,70 @@
</object>
<int
key=
"connectionID"
>
683
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
cropObjectChanged:
</string>
<reference
key=
"source"
ref=
"707254443"
/>
<reference
key=
"destination"
ref=
"37947909"
/>
</object>
<int
key=
"connectionID"
>
684
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
cropObjectChanged:
</string>
<reference
key=
"source"
ref=
"707254443"
/>
<reference
key=
"destination"
ref=
"726085921"
/>
</object>
<int
key=
"connectionID"
>
685
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
cropObjectChanged:
</string>
<reference
key=
"source"
ref=
"707254443"
/>
<reference
key=
"destination"
ref=
"718775388"
/>
</object>
<int
key=
"connectionID"
>
686
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBActionConnection"
key=
"connection"
>
<string
key=
"label"
>
cropObjectChanged:
</string>
<reference
key=
"source"
ref=
"707254443"
/>
<reference
key=
"destination"
ref=
"147696409"
/>
</object>
<int
key=
"connectionID"
>
687
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBOutletConnection"
key=
"connection"
>
<string
key=
"label"
>
o_crop_bottom_stp
</string>
<reference
key=
"source"
ref=
"707254443"
/>
<reference
key=
"destination"
ref=
"308507287"
/>
</object>
<int
key=
"connectionID"
>
688
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBOutletConnection"
key=
"connection"
>
<string
key=
"label"
>
o_crop_left_stp
</string>
<reference
key=
"source"
ref=
"707254443"
/>
<reference
key=
"destination"
ref=
"764981534"
/>
</object>
<int
key=
"connectionID"
>
689
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBOutletConnection"
key=
"connection"
>
<string
key=
"label"
>
o_crop_right_stp
</string>
<reference
key=
"source"
ref=
"707254443"
/>
<reference
key=
"destination"
ref=
"1010555455"
/>
</object>
<int
key=
"connectionID"
>
690
</int>
</object>
<object
class=
"IBConnectionRecord"
>
<object
class=
"IBOutletConnection"
key=
"connection"
>
<string
key=
"label"
>
o_crop_top_stp
</string>
<reference
key=
"source"
ref=
"707254443"
/>
<reference
key=
"destination"
ref=
"726085921"
/>
</object>
<int
key=
"connectionID"
>
691
</int>
</object>
</object>
<object
class=
"IBMutableOrderedSet"
key=
"objectRecords"
>
<object
class=
"NSArray"
key=
"orderedObjects"
>
...
...
@@ -7847,7 +7879,7 @@
</object>
</object>
<nil
key=
"sourceID"
/>
<int
key=
"maxID"
>
6
83
</int>
<int
key=
"maxID"
>
6
91
</int>
</object>
<object
class=
"IBClassDescriber"
key=
"IBDocument.Classes"
>
<object
class=
"NSMutableArray"
key=
"referencedPartialClassDescriptionsV3.1+"
>
...
...
@@ -7873,7 +7905,6 @@
<string>
enableBanding:
</string>
<string>
enableBlur:
</string>
<string>
enableClone:
</string>
<string>
enableEraseLogo:
</string>
<string>
enableExtract:
</string>
<string>
enableGradient:
</string>
<string>
enableGrain:
</string>
...
...
@@ -7890,7 +7921,6 @@
<string>
enableWaterEffect:
</string>
<string>
enableWaves:
</string>
<string>
enableZoom:
</string>
<string>
eraseLogoModifierChanged:
</string>
<string>
extractModifierChanged:
</string>
<string>
gradientModifierChanged:
</string>
<string>
grainSliderChanged:
</string>
...
...
@@ -7944,8 +7974,6 @@
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
</object>
</object>
<object
class=
"NSMutableDictionary"
key=
"actionInfosByName"
>
...
...
@@ -7966,7 +7994,6 @@
<string>
enableBanding:
</string>
<string>
enableBlur:
</string>
<string>
enableClone:
</string>
<string>
enableEraseLogo:
</string>
<string>
enableExtract:
</string>
<string>
enableGradient:
</string>
<string>
enableGrain:
</string>
...
...
@@ -7983,7 +8010,6 @@
<string>
enableWaterEffect:
</string>
<string>
enableWaves:
</string>
<string>
enableZoom:
</string>
<string>
eraseLogoModifierChanged:
</string>
<string>
extractModifierChanged:
</string>
<string>
gradientModifierChanged:
</string>
<string>
grainSliderChanged:
</string>
...
...
@@ -8053,10 +8079,6 @@
<string
key=
"name"
>
enableClone:
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBActionInfo"
>
<string
key=
"name"
>
enableEraseLogo:
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBActionInfo"
>
<string
key=
"name"
>
enableExtract:
</string>
<string
key=
"candidateClassName"
>
id
</string>
...
...
@@ -8121,10 +8143,6 @@
<string
key=
"name"
>
enableZoom:
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBActionInfo"
>
<string
key=
"name"
>
eraseLogoModifierChanged:
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBActionInfo"
>
<string
key=
"name"
>
extractModifierChanged:
</string>
<string
key=
"candidateClassName"
>
id
</string>
...
...
@@ -8210,21 +8228,18 @@
<string>
o_clone_lbl
</string>
<string>
o_crop_bottom_fld
</string>
<string>
o_crop_bottom_lbl
</string>
<string>
o_crop_bottom_stp
</string>
<string>
o_crop_left_fld
</string>
<string>
o_crop_left_lbl
</string>
<string>
o_crop_left_stp
</string>
<string>
o_crop_right_fld
</string>
<string>
o_crop_right_lbl
</string>
<string>
o_crop_right_stp
</string>
<string>
o_crop_sync_left_right_ckb
</string>
<string>
o_crop_sync_top_bottom_ckb
</string>
<string>
o_crop_top_fld
</string>
<string>
o_crop_top_lbl
</string>
<string>
o_eraselogo_ckb
</string>
<string>
o_eraselogo_left_fld
</string>
<string>
o_eraselogo_left_lbl
</string>
<string>
o_eraselogo_mask_fld
</string>
<string>
o_eraselogo_mask_lbl
</string>
<string>
o_eraselogo_top_fld
</string>
<string>
o_eraselogo_top_lbl
</string>
<string>
o_crop_top_stp
</string>
<string>
o_extract_ckb
</string>
<string>
o_extract_fld
</string>
<string>
o_extract_lbl
</string>
...
...
@@ -8367,9 +8382,6 @@
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
<string>
id
</string>
</object>
</object>
<object
class=
"NSMutableDictionary"
key=
"toOneOutletInfosByName"
>
...
...
@@ -8415,21 +8427,18 @@
<string>
o_clone_lbl
</string>
<string>
o_crop_bottom_fld
</string>
<string>
o_crop_bottom_lbl
</string>
<string>
o_crop_bottom_stp
</string>
<string>
o_crop_left_fld
</string>
<string>
o_crop_left_lbl
</string>
<string>
o_crop_left_stp
</string>
<string>
o_crop_right_fld
</string>
<string>
o_crop_right_lbl
</string>
<string>
o_crop_right_stp
</string>
<string>
o_crop_sync_left_right_ckb
</string>
<string>
o_crop_sync_top_bottom_ckb
</string>
<string>
o_crop_top_fld
</string>
<string>
o_crop_top_lbl
</string>
<string>
o_eraselogo_ckb
</string>
<string>
o_eraselogo_left_fld
</string>
<string>
o_eraselogo_left_lbl
</string>
<string>
o_eraselogo_mask_fld
</string>
<string>
o_eraselogo_mask_lbl
</string>
<string>
o_eraselogo_top_fld
</string>
<string>
o_eraselogo_top_lbl
</string>
<string>
o_crop_top_stp
</string>
<string>
o_extract_ckb
</string>
<string>
o_extract_fld
</string>
<string>
o_extract_lbl
</string>
...
...
@@ -8634,63 +8643,51 @@
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_crop_
left_fld
</string>
<string
key=
"name"
>
o_crop_
bottom_stp
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_crop_left_lbl
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_crop_right_fld
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_crop_right_lbl
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_crop_sync_left_right_ckb
</string>
<string
key=
"name"
>
o_crop_left_fld
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_crop_
sync_top_bottom_ckb
</string>
<string
key=
"name"
>
o_crop_
left_lbl
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_crop_
top_fld
</string>
<string
key=
"name"
>
o_crop_
left_stp
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_crop_
top_lbl
</string>
<string
key=
"name"
>
o_crop_
right_fld
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_
eraselogo_ckb
</string>
<string
key=
"name"
>
o_
crop_right_lbl
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_
eraselogo_left_fld
</string>
<string
key=
"name"
>
o_
crop_right_stp
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_
eraselogo_left_lbl
</string>
<string
key=
"name"
>
o_
crop_sync_left_right_ckb
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_
eraselogo_mask_fld
</string>
<string
key=
"name"
>
o_
crop_sync_top_bottom_ckb
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_
eraselogo_mask_lbl
</string>
<string
key=
"name"
>
o_
crop_top_fld
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_
eraselogo_top_fld
</string>
<string
key=
"name"
>
o_
crop_top_lbl
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
<string
key=
"name"
>
o_
eraselogo_top_lbl
</string>
<string
key=
"name"
>
o_
crop_top_stp
</string>
<string
key=
"candidateClassName"
>
id
</string>
</object>
<object
class=
"IBToOneOutletInfo"
>
...
...
modules/gui/macosx/VideoEffects.h
View file @
a75b97ad
...
...
@@ -58,12 +58,16 @@
/* crop */
IBOutlet
id
o_crop_top_lbl
;
IBOutlet
id
o_crop_top_fld
;
IBOutlet
id
o_crop_top_stp
;
IBOutlet
id
o_crop_left_lbl
;
IBOutlet
id
o_crop_left_fld
;
IBOutlet
id
o_crop_left_stp
;
IBOutlet
id
o_crop_right_lbl
;
IBOutlet
id
o_crop_right_fld
;
IBOutlet
id
o_crop_right_stp
;
IBOutlet
id
o_crop_bottom_lbl
;
IBOutlet
id
o_crop_bottom_fld
;
IBOutlet
id
o_crop_bottom_stp
;
IBOutlet
id
o_crop_sync_top_bottom_ckb
;
IBOutlet
id
o_crop_sync_left_right_ckb
;
...
...
modules/gui/macosx/VideoEffects.m
View file @
a75b97ad
...
...
@@ -564,12 +564,44 @@ static VLCVideoEffects *_o_sharedInstance = nil;
#pragma mark -
#pragma mark crop
#define updateopposite( giver, taker ) \
if (sender == giver) \
[taker setIntValue: [giver intValue]]
-
(
IBAction
)
cropObjectChanged
:(
id
)
sender
{
if
(
[
o_crop_sync_top_bottom_ckb
state
]
)
updateopposite
(
o_crop_top_fld
,
o_crop_top_stp
);
updateopposite
(
o_crop_top_stp
,
o_crop_top_fld
);
updateopposite
(
o_crop_left_fld
,
o_crop_left_stp
);
updateopposite
(
o_crop_left_stp
,
o_crop_left_fld
);
updateopposite
(
o_crop_right_fld
,
o_crop_right_stp
);
updateopposite
(
o_crop_right_stp
,
o_crop_right_fld
);
updateopposite
(
o_crop_bottom_fld
,
o_crop_bottom_stp
);
updateopposite
(
o_crop_bottom_stp
,
o_crop_bottom_fld
);
if
(
[
o_crop_sync_top_bottom_ckb
state
]
)
{
if
(
sender
==
o_crop_top_fld
||
sender
==
o_crop_top_stp
)
{
[
o_crop_bottom_fld
setIntValue
:
[
o_crop_top_fld
intValue
]];
if
(
[
o_crop_sync_left_right_ckb
state
]
)
[
o_crop_bottom_stp
setIntValue
:
[
o_crop_top_fld
intValue
]];
}
else
{
[
o_crop_top_fld
setIntValue
:
[
o_crop_bottom_fld
intValue
]];
[
o_crop_top_stp
setIntValue
:
[
o_crop_bottom_fld
intValue
]];
}
}
if
(
[
o_crop_sync_left_right_ckb
state
]
)
{
if
(
sender
==
o_crop_left_fld
||
sender
==
o_crop_left_stp
)
{
[
o_crop_right_fld
setIntValue
:
[
o_crop_left_fld
intValue
]];
[
o_crop_right_stp
setIntValue
:
[
o_crop_left_fld
intValue
]];
}
else
{
[
o_crop_left_fld
setIntValue
:
[
o_crop_right_fld
intValue
]];
[
o_crop_left_stp
setIntValue
:
[
o_crop_right_fld
intValue
]];
}
}
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
...
...
@@ -581,6 +613,8 @@ static VLCVideoEffects *_o_sharedInstance = nil;
}
}
#undef updateopposite
#pragma mark -
#pragma mark geometry
-
(
IBAction
)
enableTransform
:(
id
)
sender
...
...
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