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
7f47ba06
Commit
7f47ba06
authored
Aug 04, 2011
by
Akash Mehrotra
Committed by
Jean-Baptiste Kempf
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA: Display video settings
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
4784f3f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+10
-0
No files found.
share/lua/intf/modules/httprequests.lua
View file @
7f47ba06
...
...
@@ -31,6 +31,10 @@ local function stripslashes(s)
return
string.gsub
(
s
,
"
\\
(.)"
,
"%1"
)
end
function
round
(
what
,
precision
)
if
what
then
return
math.floor
(
what
*
math.pow
(
10
,
precision
)
+
0
.
5
)
/
math.pow
(
10
,
precision
)
else
return
""
end
end
function
strsplit
(
text
,
delimiter
)
local
strfind
=
string.find
local
strsub
=
string.sub
...
...
@@ -372,6 +376,12 @@ local aout = vlc.object.aout()
id
=
id
+
1
end
end
s
.
videoeffects
=
{}
s
.
videoeffects
.
hue
=
round
(
vlc
.
config
.
get
(
"hue"
),
2
)
s
.
videoeffects
.
brightness
=
round
(
vlc
.
config
.
get
(
"brightness"
),
2
)
s
.
videoeffects
.
contrast
=
round
(
vlc
.
config
.
get
(
"contrast"
),
2
)
s
.
videoeffects
.
saturation
=
round
(
vlc
.
config
.
get
(
"saturation"
),
2
)
s
.
videoeffects
.
gamma
=
round
(
vlc
.
config
.
get
(
"gamma"
),
2
)
s
.
state
=
vlc
.
playlist
.
status
()
s
.
random
=
vlc
.
var
.
get
(
playlist
,
"random"
)
s
.
loop
=
vlc
.
var
.
get
(
playlist
,
"loop"
)
...
...
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