Niklas Haas
b568f20f32
swscale/rational64: add 64-bit rational type
...
This is needed by the ops code, to represent intermediate values for 32-bit
formats, which can exceed the value range of int32_t (especially for
intermediate products).
I copied the math almost 1:1 from rational.c, but adapted to use the 128-bit
integer wrappers defined by int128.h. I added a generous amount of tests in
any case.
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev >
2026-06-25 01:20:15 +02:00
..
2026-05-25 21:18:34 +00:00
2025-09-11 18:32:24 -03:00
2026-05-25 21:18:34 +00:00
2025-10-25 11:11:34 +02:00
2024-05-13 03:26:57 +02:00
2026-02-20 11:59:37 +01:00
2025-11-24 16:48:31 +01:00
2026-04-28 16:17:47 +00:00
2025-12-03 11:52:54 +01:00
2025-10-28 20:46:21 +01:00
2026-03-11 14:03:36 +00:00
2026-05-25 21:18:34 +00:00
2026-03-31 18:05:51 +01:00
2025-10-25 11:11:41 +02:00
2025-11-24 16:48:31 +01:00
2026-06-15 19:11:59 +00:00
2025-10-25 11:11:41 +02:00
2026-03-29 23:01:39 +00:00
2026-03-21 01:04:20 +00:00
2025-10-25 11:11:41 +02:00
2026-04-28 16:17:47 +00:00
2023-12-21 16:15:23 +08:00
2025-12-03 11:52:54 +01:00
2024-03-31 00:08:43 +01:00
2023-09-07 00:42:10 +02:00
2026-04-05 00:12:29 +00:00
2023-09-07 00:42:10 +02:00
2025-08-03 13:48:47 +02:00
2025-11-24 16:48:31 +01:00
2023-09-07 00:42:10 +02:00
2024-10-21 09:52:50 -03:00
2025-03-19 09:34:10 -03:00
2025-11-24 16:48:31 +01:00
2026-06-25 01:20:15 +02:00
2026-04-05 00:12:29 +00:00
2026-04-05 00:12:29 +00:00
2025-08-03 13:48:47 +02:00
2025-12-03 11:52:54 +01:00
2026-03-31 18:05:51 +01:00
2026-03-21 01:04:20 +00:00
2026-04-28 16:17:47 +00:00
2024-03-31 00:08:43 +01:00
2026-04-05 22:23:08 +02:00
2026-04-28 16:17:47 +00:00
2024-03-31 00:08:43 +01:00
2026-03-31 18:05:51 +01:00