mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-15 21:23:10 +00:00
[PR #1443] [MERGED] Port hardsubx utility #2188
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1443
Author: @shashwat1002
Created: 6/22/2022
Status: ✅ Merged
Merged: 7/13/2022
Merged by: @PunitLodha
Base:
master← Head:port_hardsubx_utility📝 Commits (10+)
5e2caf2set up bindings conversion of hardsubx utility functions (and structs) and set up the module4043e5eadd low level ffmpeg rust binding4a57f0fMethods ported:736a8f7put C code of hardsubx_utility under define rust flag4c380d3run formatterc9a0febmake compilation of hardsubx rust modules conditional on the HARDSUBX and the OCR flags. Make ffmpeg a conditional dependency based on those flags04515c7remove namespaced dependency in cargo because that is a nightly feature174dbd8add conditioal compilatio of ffmpeg related bindigs in build.rsce7b1ffmake clang argument of -DENABLE_HARDSUBX conditional on cargo feature of hardsubx_ocr068dec0enable specific relevant features for ffmpeg-sys-next📊 Changes
15 files changed (+280 additions, -58 deletions)
View changed files
📝
.github/workflows/build_linux.yml(+1 -1)📝
.github/workflows/format.yml(+3 -1)📝
linux/Makefile.am(+20 -16)📝
linux/build(+7 -1)📝
mac/Makefile.am(+21 -16)📝
src/lib_ccx/hardsubx_utility.c(+1 -1)📝
src/rust/CMakeLists.txt(+10 -2)📝
src/rust/Cargo.lock(+90 -3)📝
src/rust/Cargo.toml(+5 -1)📝
src/rust/build.rs(+29 -14)📝
src/rust/src/hardsubx/mod.rs(+1 -0)➕
src/rust/src/hardsubx/utility.rs(+88 -0)📝
src/rust/src/lib.rs(+1 -0)📝
src/rust/wrapper.h(+2 -1)📝
windows/rustx86.bat(+1 -1)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Ported
hardsubx_utilityadded pure rust function for levenstein edit distance
added a wrapper for compatibility with C code. The wrapper won't be necessary when the downstream modules are ported.
PS: some methods in the original C code were never used anywhere and therefore they were not ported
CC: @PunitLodha
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.