Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
02a6e7ba
Commit
02a6e7ba
authored
Jun 26, 2017
by
Victorien Le Couviour--Tuffet
Committed by
Jean-Baptiste Kempf
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: save video profile from playlist
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
b3d9857b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
36 deletions
+37
-36
modules/gui/macosx/VLCVideoEffectsWindowController.m
modules/gui/macosx/VLCVideoEffectsWindowController.m
+37
-36
No files found.
modules/gui/macosx/VLCVideoEffectsWindowController.m
View file @
02a6e7ba
...
...
@@ -514,43 +514,44 @@
-
(
NSString
*
)
generateProfileString
{
intf_thread_t
*
p_intf
=
getIntf
();
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
return
[
NSString
stringWithFormat
:
@"%@;%@;%@;%lli;%f;%f;%f;%f;%f;%lli;%f;%@;%lli;%lli;%lli;%lli;%lli;%lli;%@;%lli;%lli;%lli;%lli;%lli;%@;%lli;%@;%lli;%lli;%lli;%lli;%lli;%lli;%f"
,
B64EncAndFree
(
config_GetPsz
(
p_intf
,
"video-filter"
)),
B64EncAndFree
(
config_GetPsz
(
p_intf
,
"sub-source"
)),
B64EncAndFree
(
config_GetPsz
(
p_intf
,
"video-splitter"
)),
0LL
,
// former "hue" value, deprecated since 3.0.0
config_Ge
tFloat
(
p_
intf
,
"contrast"
),
config_Ge
tFloat
(
p_
intf
,
"brightness"
),
config_Ge
tFloat
(
p_
intf
,
"saturation"
),
config_Ge
tFloat
(
p_
intf
,
"gamma"
),
config_Ge
tFloat
(
p_
intf
,
"sharpen-sigma"
),
config_GetInt
(
p_intf
,
"gradfun-radius"
),
config_Ge
tFloat
(
p_
intf
,
"grain-variance"
),
B64EncAndFree
(
config_GetPsz
(
p_intf
,
"transform-type"
)),
config_GetInt
(
p_intf
,
"puzzle-rows"
),
config_GetInt
(
p_intf
,
"puzzle-cols"
),
config_GetInt
(
p_intf
,
"colorthres-color"
),
config_GetInt
(
p_intf
,
"colorthres-saturationthres"
),
config_GetInt
(
p_intf
,
"colorthres-similaritythres"
),
config_GetInt
(
p_intf
,
"sepia-intensity"
),
B64EncAndFree
(
config_GetPsz
(
p_intf
,
"gradient-mode"
)),
config_GetInt
(
p_intf
,
"gradient-cartoon"
),
config_GetInt
(
p_intf
,
"gradient-type"
),
config_GetInt
(
p_intf
,
"extract-component"
),
config_GetInt
(
p_intf
,
"posterize-level"
),
config_GetInt
(
p_intf
,
"blur-factor"
),
B64EncAndFree
(
config_GetPsz
(
p_intf
,
"marq-marquee"
)),
config_GetInt
(
p_intf
,
"marq-position"
),
B64EncAndFree
(
config_GetPsz
(
p_intf
,
"logo-file"
)),
config_GetInt
(
p_intf
,
"logo-position"
),
config_GetInt
(
p_intf
,
"logo-opacity"
),
config_GetInt
(
p_intf
,
"clone-count"
),
config_GetInt
(
p_intf
,
"wall-rows"
),
config_GetInt
(
p_intf
,
"wall-cols"
),
// version 2 of profile string:
config_GetInt
(
p_intf
,
"brightness-threshold"
),
// index: 32
// version 3 of profile string: (vlc-3.0.0)
config_Ge
tFloat
(
p_
intf
,
"hue"
)
// index: 33
B64EncAndFree
(
var_InheritString
(
p_playlist
,
"video-filter"
)),
B64EncAndFree
(
var_InheritString
(
p_playlist
,
"sub-source"
)),
B64EncAndFree
(
var_InheritString
(
p_playlist
,
"video-splitter"
)),
0LL
,
// former "hue" value, deprecated since 3.0.0
var_Inheri
tFloat
(
p_
playlist
,
"contrast"
),
var_Inheri
tFloat
(
p_
playlist
,
"brightness"
),
var_Inheri
tFloat
(
p_
playlist
,
"saturation"
),
var_Inheri
tFloat
(
p_
playlist
,
"gamma"
),
var_Inheri
tFloat
(
p_
playlist
,
"sharpen-sigma"
),
var_InheritInteger
(
p_playlist
,
"gradfun-radius"
),
var_Inheri
tFloat
(
p_
playlist
,
"grain-variance"
),
B64EncAndFree
(
var_InheritString
(
p_playlist
,
"transform-type"
)),
var_InheritInteger
(
p_playlist
,
"puzzle-rows"
),
var_InheritInteger
(
p_playlist
,
"puzzle-cols"
),
var_InheritInteger
(
p_playlist
,
"colorthres-color"
),
var_InheritInteger
(
p_playlist
,
"colorthres-saturationthres"
),
var_InheritInteger
(
p_playlist
,
"colorthres-similaritythres"
),
var_InheritInteger
(
p_playlist
,
"sepia-intensity"
),
B64EncAndFree
(
var_InheritString
(
p_playlist
,
"gradient-mode"
)),
(
int64_t
)
var_InheritBool
(
p_playlist
,
"gradient-cartoon"
),
var_InheritInteger
(
p_playlist
,
"gradient-type"
),
var_InheritInteger
(
p_playlist
,
"extract-component"
),
var_InheritInteger
(
p_playlist
,
"posterize-level"
),
var_InheritInteger
(
p_playlist
,
"blur-factor"
),
B64EncAndFree
(
var_InheritString
(
p_playlist
,
"marq-marquee"
)),
var_InheritInteger
(
p_playlist
,
"marq-position"
),
B64EncAndFree
(
var_InheritString
(
p_playlist
,
"logo-file"
)),
var_InheritInteger
(
p_playlist
,
"logo-position"
),
var_InheritInteger
(
p_playlist
,
"logo-opacity"
),
var_InheritInteger
(
p_playlist
,
"clone-count"
),
var_InheritInteger
(
p_playlist
,
"wall-rows"
),
var_InheritInteger
(
p_playlist
,
"wall-cols"
),
// version 2 of profile string:
(
int64_t
)
var_InheritBool
(
p_playlist
,
"brightness-threshold"
),
// index: 32
// version 3 of profile string: (vlc-3.0.0)
var_Inheri
tFloat
(
p_
playlist
,
"hue"
)
// index: 33
];
}
...
...
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