Added MPV setup
This commit is contained in:
parent
b9de556a5c
commit
490251af99
47 changed files with 5931 additions and 0 deletions
29
dot_config/private_mpv/scripts/videoclip/timings_mgr.lua
Normal file
29
dot_config/private_mpv/scripts/videoclip/timings_mgr.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
--[[
|
||||
Copyright: Ren Tatsumoto and contributors
|
||||
License: GNU GPL, version 3 or later; http://www.gnu.org/licenses/gpl.html
|
||||
|
||||
Timings class
|
||||
]]
|
||||
|
||||
local Timings = {
|
||||
['start'] = -1,
|
||||
['end'] = -1,
|
||||
}
|
||||
|
||||
function Timings:new(o)
|
||||
o = o or {}
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
return o
|
||||
end
|
||||
|
||||
function Timings:reset()
|
||||
self['start'] = -1
|
||||
self['end'] = -1
|
||||
end
|
||||
|
||||
function Timings:validate()
|
||||
return self['start'] >= 0 and self['start'] < self['end']
|
||||
end
|
||||
|
||||
return Timings
|
||||
Loading…
Add table
Add a link
Reference in a new issue