aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/graph/graphprint.c
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/graph/graphprint: Remove redundant avio_flush()Andreas Rheinhardt2025-06-021-1/+0
| | | | | | | The AVIOContext will be automatically flushed upon closure. Reviewed-by: softworkz . <softworkz-at-hotmail.com@ffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fftools/graph/graphprint: Fix races when initializing graphprintAndreas Rheinhardt2025-06-021-15/+4
| | | | | | | | | | | | | Setting print_graphs_format (in case no -print_graphs_format option was specified) is racy, as is using av_strtok() to split it. Both have been removed. Notice that using av_strtok() was destructive: In the absence of races the options would only have been applied for the first initialization. Reviewed-by: softworkz . <softworkz-at-hotmail.com@ffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fftools/ffmpeg_filter: make InputFilterPriv and OutputFilterPriv private againJames Almer2025-06-011-9/+9
| | | | | | | | As the names imply, they are structs meant to be internal and private to the filter handling code. If a field is required in other modules, then it can be moved to the public facing structs, which is done in this commit. Signed-off-by: James Almer <jamrial@gmail.com>
* fftools/ffmpeg_filter: make FilterGraphPriv private againJames Almer2025-06-011-10/+6
| | | | | | | | As the name implies, it's a struct meant to be internal and private to the filter handling code. If a field is required in other modules, then it can be moved to the public facing struct, which is done in this commit. Signed-off-by: James Almer <jamrial@gmail.com>
* fftools/graphprint: Fix memory leakssoftworkz2025-05-281-1/+4
| | | | | | | | - uninit resource manager - free strings before overwriting - unref hw_frames_context Signed-off-by: softworkz <softworkz@hotmail.com>
* fftools/graphprint: Fix leak of graph section header stringMark Thompson2025-05-181-0/+2
|
* fftools/graphprint: Fix leak of graphprint objectMark Thompson2025-05-181-0/+2
|
* Revert "fftools/graphprint: Now, make it a Killer-Feature!"softworkz2025-05-161-47/+1
| | | | This reverts commit 1f2b8d7238eff4ab8a4d8d6177e250b8180d51f4.
* fftools/graphprint: Now, make it a Killer-Feature!softworkz2025-05-151-1/+47
| | | | | | remember this: -sg <= means Show Graph Signed-off-by: softworkz <softworkz@hotmail.com>
* fftools/graphprint: Add execution graph printingsoftworkz2025-05-151-0/+1107
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>