Commit 7f47ba06 authored by Akash Mehrotra's avatar Akash Mehrotra Committed by Jean-Baptiste Kempf

LUA: Display video settings

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4784f3f0
......@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment