diff options
| author | a1e7cb88 <[email protected]> | 2021-10-18 00:27:08 +0800 |
|---|---|---|
| committer | a1e7cb88 <[email protected]> | 2021-10-18 00:27:08 +0800 |
| commit | f696fba48f3a05c08af71b9e2dceb72bb7c9c024 (patch) | |
| tree | 7d4af1df2fa20ef09137a7f7e8dd641d49f2c5d0 /c/sdk.py | |
| parent | 113fd8f700015308e663c8904c95ddf374987b78 (diff) | |
update mod
Diffstat (limited to 'c/sdk.py')
| -rw-r--r-- | c/sdk.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/c/sdk.py b/c/sdk.py deleted file mode 100644 index a48a55e..0000000 --- a/c/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) - |
