mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1556] [CLOSED] [FEAT] Add time units module in lib_ccxr
#2274
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/1556
Author: @elbertronnie
Created: 8/27/2023
Status: ❌ Closed
Base:
master← Head:add-time-units-module📝 Commits (3)
8014d8bcreate lib_ccxr and libccxr_exports49cdd1fadd time units moduleb479f49use expect and re-use MPEG_CLOCK_FREQ from C📊 Changes
15 files changed (+1222 additions, -60 deletions)
View changed files
📝
.gitignore(+2 -1)📝
src/lib_ccx/utility.c(+33 -0)📝
src/rust/Cargo.lock(+165 -58)📝
src/rust/Cargo.toml(+1 -0)📝
src/rust/build.rs(+7 -1)➕
src/rust/lib_ccxr/Cargo.lock(+172 -0)➕
src/rust/lib_ccxr/Cargo.toml(+20 -0)➕
src/rust/lib_ccxr/src/lib.rs(+1 -0)➕
src/rust/lib_ccxr/src/util/mod.rs(+3 -0)➕
src/rust/lib_ccxr/src/util/time/c_functions.rs(+35 -0)➕
src/rust/lib_ccxr/src/util/time/mod.rs(+27 -0)➕
src/rust/lib_ccxr/src/util/time/units.rs(+641 -0)📝
src/rust/src/lib.rs(+1 -0)➕
src/rust/src/libccxr_exports/mod.rs(+5 -0)➕
src/rust/src/libccxr_exports/time.rs(+109 -0)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
This is an attempt to split #1495 into multiple independant PRs. Dependant on #1551.
This PR adds types that enables to store time in different representations like simple milliseconds, number of frames, etc. And also allow to interconvert between them. It also provides functions for formatting time in different kinds of formats. Certain functions are integrated into C codebase.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.