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
b011ab46
Commit
b011ab46
authored
Nov 19, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed transform filter controls
parent
fd7c4d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
8 deletions
+38
-8
modules/gui/macosx/VideoEffects.m
modules/gui/macosx/VideoEffects.m
+38
-8
No files found.
modules/gui/macosx/VideoEffects.m
View file @
b011ab46
...
...
@@ -400,7 +400,6 @@ static VLCVideoEffects *_o_sharedInstance = nil;
}
}
config_PutPsz
(
p_intf
,
psz_filter_type
,
psz_string
);
msg_Dbg
(
p_intf
,
"set string '%s'"
,
psz_string
);
/* Try to set on the fly */
if
(
!
strcmp
(
psz_filter_type
,
"video-splitter"
)
)
...
...
@@ -413,13 +412,33 @@ static VLCVideoEffects *_o_sharedInstance = nil;
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
NSLog
(
@"set on the fly"
);
var_SetString
(
p_vout
,
psz_filter_type
,
psz_string
);
vlc_object_release
(
p_vout
);
}
}
}
-
(
void
)
restartFilterIfNeeded
:
(
char
*
)
psz_filter
option
:
(
char
*
)
psz_name
{
vlc_object_t
*
p_filter
=
vlc_object_find_name
(
pl_Get
(
p_intf
),
psz_filter
);
int
i_type
;
i_type
=
var_Type
(
p_filter
,
psz_name
);
if
(
i_type
==
0
)
i_type
=
config_GetType
(
p_intf
,
psz_name
);
if
(
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
{
msg_Warn
(
p_intf
,
"Brute-restarting filter '%s', because the last changed option isn't a command"
,
psz_name
);
[
self
setVideoFilter
:
psz_filter
on
:
NO
];
[
self
setVideoFilter
:
psz_filter
on
:
YES
];
}
else
msg_Dbg
(
p_intf
,
"restart not needed"
);
if
(
p_filter
)
vlc_object_release
(
p_filter
);
}
-
(
void
)
setVideoFilterProperty
:
(
char
*
)
psz_name
forFilter
:
(
char
*
)
psz_filter
integer
:
(
int
)
i_value
{
vout_thread_t
*
p_vout
=
getVout
();
...
...
@@ -438,7 +457,10 @@ static VLCVideoEffects *_o_sharedInstance = nil;
var_SetInteger
(
p_filter
,
psz_name
,
i_value
);
config_PutInt
(
p_intf
,
psz_name
,
i_value
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_filter
);
}
[
self
restartFilterIfNeeded
:
psz_filter
option
:
psz_name
];
}
-
(
void
)
setVideoFilterProperty
:
(
char
*
)
psz_name
forFilter
:
(
char
*
)
psz_filter
float
:
(
float
)
f_value
...
...
@@ -459,7 +481,10 @@ static VLCVideoEffects *_o_sharedInstance = nil;
var_SetFloat
(
p_filter
,
psz_name
,
f_value
);
config_PutFloat
(
p_intf
,
psz_name
,
f_value
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_filter
);
}
[
self
restartFilterIfNeeded
:
psz_filter
option
:
psz_name
];
}
-
(
void
)
setVideoFilterProperty
:
(
char
*
)
psz_name
forFilter
:
(
char
*
)
psz_filter
string
:
(
char
*
)
psz_value
...
...
@@ -480,7 +505,10 @@ static VLCVideoEffects *_o_sharedInstance = nil;
var_SetString
(
p_filter
,
psz_name
,
psz_value
);
config_PutPsz
(
p_intf
,
psz_name
,
psz_value
);
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_filter
);
}
[
self
restartFilterIfNeeded
:
psz_filter
option
:
psz_name
];
}
-
(
void
)
setVideoFilterProperty
:
(
char
*
)
psz_name
forFilter
:
(
char
*
)
psz_filter
boolean
:
(
BOOL
)
b_value
...
...
@@ -642,12 +670,14 @@ static VLCVideoEffects *_o_sharedInstance = nil;
-
(
IBAction
)
transformModifierChanged
:(
id
)
sender
{
if
(
[[
o_transform_pop
selectedItem
]
tag
]
==
1
)
config_PutPsz
(
p_intf
,
"transform-type"
,
"hflip"
);
else
if
(
[[
o_transform_pop
selectedItem
]
tag
]
==
2
)
config_PutPsz
(
p_intf
,
"transform-type"
,
"vflip"
);
else
config_PutPsz
(
p_intf
,
"transform-type"
,
(
char
*
)[
o_transform_pop
tag
]
);
NSInteger
tag
=
[[
o_transform_pop
selectedItem
]
tag
];
char
*
psz_string
=
(
char
*
)[[
NSString
stringWithFormat
:
@"%i"
,
tag
]
UTF8String
];
if
(
tag
==
1
)
psz_string
=
(
char
*
)
"hflip"
;
else
if
(
tag
==
2
)
psz_string
=
(
char
*
)
"vflip"
;
[
self
setVideoFilterProperty
:
"transform-type"
forFilter
:
"transform"
string
:
psz_string
];
}
-
(
IBAction
)
enableZoom
:(
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