diff options
| author | b5f0d6c3 <[email protected]> | 2022-03-19 10:37:57 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-03-19 10:37:57 +0800 |
| commit | b26503c9d804a86e5a697bc25bc1ff65238cdf06 (patch) | |
| tree | 7ef05275f106fbf9e446845c4d94a930de60d9f4 /mkvlib/c | |
| parent | 42b21320e957d42f7cda17d71cfc6c0414518f4a (diff) | |
update README.md
Diffstat (limited to 'mkvlib/c')
| -rw-r--r-- | mkvlib/c/README.md | 6 | ||||
| -rw-r--r-- | mkvlib/c/exports.go | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/mkvlib/c/README.md b/mkvlib/c/README.md index 7295b5c..3d9a00b 100644 --- a/mkvlib/c/README.md +++ b/mkvlib/c/README.md @@ -115,4 +115,10 @@ //output: 成品输出文件夹路径 //dirSafe: 是否把成品输出到"${output}/subsetted"文件夹里(为了安全建议设置为true) //return: 是否全程无错 + ``` + - ```c + char* CreateMKVs(char* dir, logCallback lcb); + //取得指定目录内所有字幕需要的全部字体 + //dir: 字幕文件所在的目录 + //return: json格式的数组 ```
\ No newline at end of file diff --git a/mkvlib/c/exports.go b/mkvlib/c/exports.go index 2ad4471..c79431e 100644 --- a/mkvlib/c/exports.go +++ b/mkvlib/c/exports.go @@ -131,6 +131,16 @@ func A2P(a2p, apc bool, pr, pf int) { getter.GetProcessorInstance().A2P(a2p, apc, pr, pf) } +//export GetFontsList +func GetFontsList(dir *C.char, lcb C.logCallback) *C.char { + if !checkInstance() { + return cs("") + } + list := getter.GetProcessorInstance().GetFontsList(gs(dir), _lcb(lcb)) + data, _ := json.Marshal(list) + return cs(string(data)) +} + func cs(gs string) *C.char { return C.CString(gs) } |
