summaryrefslogtreecommitdiff
path: root/cexports/sdk.py
diff options
context:
space:
mode:
Diffstat (limited to 'cexports/sdk.py')
-rw-r--r--cexports/sdk.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/cexports/sdk.py b/cexports/sdk.py
deleted file mode 100644
index a48a55e..0000000
--- a/cexports/sdk.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from ctypes import *
-from json import *
-
-libpath="./mkvlib.so"
-lib=CDLL(libpath)
-
-def checkInstance():
- call=lib.CheckInstance
- return call()
-
-def getMKVInfo(file):
- call=lib.GetMKVInfo
- call.restype=c_char_p
- return call(file.encode())
-
-def dumpMKV(file,output,subset,dirSafe):
- call=lib.DumpMKV
- return call(file.encode(),output.encode(),subset,dirSafe)
-
-def checkSubset(file):
- call=lib.CheckSubset
- call.restype=c_char_p
- return call(file.encode())
-
-def createMKV(file,tracks,attachments,output,slang,stitle,clean):
- call=lib.CreateMKV
- _tracks=dumps(tracks)
- _attachments=dumps(attachments)
- return call(file.encode(),_tracks.encode(),_attachments.encode(),output.encode(),slang.encode(),stitle.encode(),clean)
-
-def assFontSubset(files,fonts,output,dirSafe):
- call=lib.ASSFontSubset
- _files=dumps(files)
- return call(_files.encode(),fonts.encode(),output.encode(),dirSafe)
-