mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-14 21:23:42 +00:00
[PR #1458] [CLOSED] [WIP] Set up a Rust native version of Hardsubx context and rewrite hardsubx.c #2197
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/1458
Author: @shashwat1002
Created: 10/31/2022
Status: ❌ Closed
Base:
master← Head:struct_rewrite📝 Commits (10+)
f3b331bSet up a Rust native version of Hardsubx contexta3fd49cformat fixes0935934clippy changes6e378e1fix bugs during initialization of native hardsubx contextdc56463change from Option reference types to raw pointers for Hardsubx context and define AVPacket304d1c3add main file for hardsubx58f6334add function for deinitializing hardsubx context3c56b24change all hardsubx context raw pointers to use native HardsubxContext2d4083ffor all helper functions return string and not C character array2465d1echange sub_color to a native enum📊 Changes
11 files changed (+1458 additions, -144 deletions)
View changed files
📝
src/lib_ccx/hardsubx.c(+4 -2)📝
src/rust/Cargo.lock(+83 -2)📝
src/rust/Cargo.toml(+4 -0)📝
src/rust/build.rs(+27 -0)📝
src/rust/src/hardsubx/classifier.rs(+33 -81)📝
src/rust/src/hardsubx/decoder.rs(+731 -58)➕
src/rust/src/hardsubx/main.rs(+215 -0)📝
src/rust/src/hardsubx/mod.rs(+340 -1)📝
src/rust/src/hardsubx/utility.rs(+13 -0)📝
src/rust/src/lib.rs(+7 -0)📝
src/rust/wrapper.h(+1 -0)📄 Description
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.