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
02a2c397
Commit
02a2c397
authored
Aug 30, 2011
by
Akash Mehrotra
Committed by
Jean-Baptiste Kempf
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: httprequests.lua -- formatting fixes
parent
80d51438
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
share/lua/http/requests/README.txt
share/lua/http/requests/README.txt
+0
-1
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+12
-8
No files found.
share/lua/http/requests/README.txt
View file @
02a2c397
...
...
@@ -128,7 +128,6 @@ Band 0: 60 Hz, 1: 170 Hz, 2: 310 Hz, 3: 600 Hz, 4: 1 kHz,
<Display the list of presets available for the equalizer
=======
playlist.xml:
=============
< get the full playlist tree
...
...
share/lua/intf/modules/httprequests.lua
View file @
02a2c397
...
...
@@ -31,10 +31,12 @@ local function stripslashes(s)
return
string.gsub
(
s
,
"
\\
(.)"
,
"%1"
)
end
--Round the number to the specified precision
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
--split text where it matches the delimiter
function
strsplit
(
text
,
delimiter
)
local
strfind
=
string.find
local
strsub
=
string.sub
...
...
@@ -374,6 +376,7 @@ local aout = vlc.object.aout()
s
.
rate
=
1
s
.
subtitledelay
=
0
end
if
vout
then
s
.
fullscreen
=
vlc
.
var
.
get
(
vout
,
"fullscreen"
)
s
.
aspectratio
=
vlc
.
var
.
get
(
vout
,
"aspect-ratio"
);
...
...
@@ -381,6 +384,7 @@ local aout = vlc.object.aout()
else
s
.
fullscreen
=
0
end
if
aout
then
local
filters
=
vlc
.
var
.
get
(
aout
,
"audio-filter"
)
local
temp
=
strsplit
(
filters
,
":"
)
...
...
@@ -391,16 +395,19 @@ 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
.
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"
)
s
[
"repeat"
]
=
vlc
.
var
.
get
(
playlist
,
"repeat"
)
s
.
equalizer
=
{}
s
.
equalizer
.
preamp
=
round
(
vlc
.
equalizer
.
preampget
(),
2
)
s
.
equalizer
.
bands
=
vlc
.
equalizer
.
equalizerget
()
...
...
@@ -432,10 +439,7 @@ local aout = vlc.object.aout()
local
tag
=
string.gsub
(
k
,
"_"
,
""
)
s
.
stats
[
tag
]
=
xmlString
(
v
)
end
end
return
s
end
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