aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/textformat/avtextformat.h
Commit message (Collapse)AuthorAgeFilesLines
* fftools/textformat: renamings in print_unit_int for consistency (cosmetic)Nicolas Gaullier2025-06-271-1/+1
| | | | | Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris> Reviewed-by: softworkz <softworkz@hotmail.com>
* fftools/textformat: fix print 64 bit integersNicolas Gaullier2025-06-271-1/+1
| | | | | | | | | | | Regression in ffprobe since textformat introduction in d7a3f68feae0b1c3718f9d2671c6d41c60a40680. Fixes #11638 Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris> Reviewed-by: Marvin Scholz <epirat07@gmail.com> Reviewed-by: softworkz <softworkz@hotmail.com>
* fftools/textformat: correctly propagate uninit error codesMarton Balint2025-05-161-1/+1
| | | | | | This allows catching IO errors occuring at file close. Signed-off-by: Marton Balint <cus@passwd.hu>
* Revert "fftools/textformat/avtextformat: Make close functions return void"Marton Balint2025-05-161-1/+1
| | | | | This reverts commit 7684243fbe6e84fecb4a039195d5fda8a006a2a4 and a888975a3c25760027cd59932f5c1ad04368db8b.
* fftools/graphprint: Add execution graph printingsoftworkz2025-05-151-0/+29
| | | | | | | | | | | | | | | | | | | | | 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>
* fftools/textformat: Add flags param to function avtext_print_integer()softworkz2025-05-151-1/+1
| | | | | | | Make this function work analog to avtext_print_string() which already has a flags parameter. Signed-off-by: softworkz <softworkz@hotmail.com>
* fftools/textformat: Introduce AVTextFormatOptions for avtext_context_open()softworkz2025-05-151-7/+9
| | | | | | | | 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>
* fftools/textformat: Rename name param to key for API consistencysoftworkz2025-05-151-3/+3
| | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: softworkz <softworkz@hotmail.com>
* fftools/textformat: Remove unused print_rational() pointer from AVTextFormattersoftworkz2025-05-151-1/+0
| | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: softworkz <softworkz@hotmail.com>
* fftools/textformat: Apply quality improvementssoftworkz2025-05-151-4/+2
| | | | | | | | | | | | 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>
* fftools/textformat: Apply formatting and whitespace changessoftworkz2025-05-151-10/+10
| | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: softworkz <softworkz@hotmail.com>
* fftools/textformat/avtextformat: Make close functions return voidAndreas Rheinhardt2025-04-161-1/+1
| | | | | | | Just like normal close functions. Reviewed-by: softworkz . <softworkz-at-hotmail.com@ffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fftools/textformat: Extract and generalize textformat api from ffprobe.csoftworkz2025-04-111-0/+171
Signed-off-by: softworkz <softworkz@hotmail.com>