Conversation
OwenYou
approved these changes
Dec 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[1.0.0b3]
Fixed
Fix Python 3.14 compatibility issue in
move_frame()method whereFraction()constructor with two arguments failed due to stricter type requirements修复 Python 3.14 兼容性问题,
move_frame()方法中Fraction()构造函数因更严格的类型要求而失败Fix precision loss issues in timecode initialization methods (
__init_smpte(),__init_frame()) by usingFraction()division instead of float division修复时码初始化方法中的精度损失问题,使用
Fraction()除法替代浮点数除法Fix FCPX format output to correctly handle integer timestamps, avoiding large numerator values when the result is a whole number
修复 FCPX 格式输出,正确处理整数时间戳,避免结果为整数时出现大分子值
Added
Add
move_frame()andmove_time()methods to DfttTimecode class for moving timecode by specified frames or time duration为 DfttTimecode 类添加
move_frame()和move_time()方法,用于按指定帧数或时间段移动时码Add comprehensive unit tests (32 tests) for
move_frame()andmove_time()methods为
move_frame()和move_time()方法添加全面的单元测试(32 个测试)Frame movement tests: forward/backward movement, zero movement, large movements (86400 frames)
帧移动测试:正向/反向移动、零移动、大规模移动(86400 帧)
Time movement tests: float/int/Fraction input support, various time movements
时间移动测试:浮点数/整数/分数输入支持、各种时间移动
Strict mode tests: 24-hour cycling behavior verification
严格模式测试:24 小时循环行为验证
Different frame rates: 24, 30, 60, 119.88 fps
不同帧率:24、30、60、119.88 fps
Drop-frame timecode support tests
丢帧时码支持测试
Method chaining and input validation tests
方法链和输入验证测试
Equivalence test between
move_frame()andmove_time()move_frame()和move_time()的等价性测试Changed
Improved internal timestamp precision across the entire codebase by consistently using
Fraction()arithmetic通过始终使用
Fraction()算术运算,提高整个代码库的内部时间戳精度