Nicolas Gaullier
18c62245d7
fftools/textformat: renamings in print_unit_int for consistency (cosmetic)
...
Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris >
Reviewed-by: softworkz <softworkz@hotmail.com >
2025-06-27 00:24:35 +02:00
Nicolas Gaullier
2b25a66238
fftools/textformat: fix print 64 bit integers
...
Regression in ffprobe since textformat introduction
in d7a3f68fea .
Fixes #11638
Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris >
Reviewed-by: Marvin Scholz <epirat07@gmail.com >
Reviewed-by: softworkz <softworkz@hotmail.com >
2025-06-27 00:23:57 +02:00
Marton Balint
0d6ef6f545
fftools/textformat: correctly propagate uninit error codes
...
This allows catching IO errors occuring at file close.
Signed-off-by: Marton Balint <cus@passwd.hu >
2025-05-16 20:43:58 +02:00
Marton Balint
a124c9a580
Revert "fftools/textformat/avtextformat: Make close functions return void"
...
This reverts commit 7684243fbe and
a888975a3c .
2025-05-16 20:43:58 +02:00
softworkz
45926bc09a
fftools/graphprint: Add execution graph printing
...
The key benefits are:
- Different to other graph printing methods, this is outputting:
- all graphs with runtime state
(including auto-inserted filters)
- each graph with its inputs and outputs
- all filters with their in- and output pads
- all connections between all input- and output pads
- for each connection:
- the runtime-negotiated format and media type
- the hw context
- if video hw context, both: hw pixfmt + sw pixfmt
- Output can either be printed to stdout or written to specified file
- Output is machine-readable
- Use the same output implementation as ffprobe, supporting multiple
formats
Signed-off-by: softworkz <softworkz@hotmail.com >
2025-05-15 23:09:17 +02:00
softworkz
b71b444a3a
fftools/textformat: Add flags param to function avtext_print_integer()
...
Make this function work analog to avtext_print_string() which already
has a flags parameter.
Signed-off-by: softworkz <softworkz@hotmail.com >
2025-05-15 23:04:44 +02:00
softworkz
e4830b8c5e
fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()
...
This allows future addition of options without
changes to the signature of avtext_context_open().
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: softworkz <softworkz@hotmail.com >
2025-05-15 23:04:44 +02:00
softworkz
d225928703
fftools/textformat: Rename name param to key for API consistency
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: softworkz <softworkz@hotmail.com >
2025-05-15 23:04:44 +02:00
softworkz
4baeb9ffe9
fftools/textformat: Remove unused print_rational() pointer from AVTextFormatter
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: softworkz <softworkz@hotmail.com >
2025-05-15 23:04:44 +02:00
softworkz
5f90eea8a8
fftools/textformat: Apply quality improvements
...
Perform multiple improvements to increase code robustness.
In particular:
- favor unsigned counters for loops
- add missing checks
- avoid possible leaks
- move variable declarations to inner scopes when feasible
- provide explicit type-casting when needed
Signed-off-by: softworkz <softworkz@hotmail.com >
2025-05-15 23:04:44 +02:00
softworkz
8f42d90413
fftools/textformat: Apply formatting and whitespace changes
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: softworkz <softworkz@hotmail.com >
2025-05-15 23:04:44 +02:00
Andreas Rheinhardt
a888975a3c
fftools/textformat/avtextformat: Make close functions return void
...
Just like normal close functions.
Reviewed-by: softworkz . <softworkz-at-hotmail.com@ffmpeg.org >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-04-16 06:13:13 +02:00
softworkz
97d680d450
fftools/textformat: Extract and generalize textformat api from ffprobe.c
...
Signed-off-by: softworkz <softworkz@hotmail.com >
2025-04-11 03:06:47 +02:00