This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit fc7a984aae0b44c722d3977bb04c1d5037a3892c
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Jun 24 16:05:20 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Wed Jul 1 05:03:34 2026 +0200

    swscale/graph: Remove ff_sws_graph_create()
    
    Unused since 9fe0ff3d56618c24d95fa4e832148bab54928f18.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 doc/swscale-v2.txt |  5 +++--
 libswscale/graph.c | 17 -----------------
 libswscale/graph.h |  6 ------
 3 files changed, 3 insertions(+), 25 deletions(-)

diff --git a/doc/swscale-v2.txt b/doc/swscale-v2.txt
index aa2edceca7..a8bc71f426 100644
--- a/doc/swscale-v2.txt
+++ b/doc/swscale-v2.txt
@@ -13,8 +13,9 @@ threaded error diffusion pass following a multi-threaded 
scaling pass.
 
 SwsGraph is internally recreated whenever the image format, dimensions or
 settings change in any way. sws_scale_frame() is itself just a light-weight
-wrapper that runs ff_sws_graph_create() whenever the format changes, splits
-interlaced images into separate fields, and calls ff_sws_graph_run() on each.
+wrapper that runs ff_sws_graph_reinit() initially and on format changes,
+splits interlaced images into separate fields, and calls ff_sws_graph_run()
+on each.
 
 From the point of view of SwsGraph itself, all inputs are progressive.
 
diff --git a/libswscale/graph.c b/libswscale/graph.c
index 019f9207fb..b9d5df3b48 100644
--- a/libswscale/graph.c
+++ b/libswscale/graph.c
@@ -880,23 +880,6 @@ error:
     return ret;
 }
 
-int ff_sws_graph_create(SwsContext *ctx, const SwsFormat *dst, const SwsFormat 
*src,
-                        SwsGraph **out_graph)
-{
-    SwsGraph *graph = ff_sws_graph_alloc();
-    if (!graph)
-        return AVERROR(ENOMEM);
-
-    int ret = ff_sws_graph_init(graph, ctx, dst, src);
-    if (ret < 0) {
-        ff_sws_graph_free(&graph);
-        return ret;
-    }
-
-    *out_graph = graph;
-    return 0;
-}
-
 void ff_sws_graph_rollback(SwsGraph *graph, int since_idx)
 {
     for (int i = since_idx; i < graph->num_passes; i++)
diff --git a/libswscale/graph.h b/libswscale/graph.h
index e467a43e45..68c6a0b9eb 100644
--- a/libswscale/graph.h
+++ b/libswscale/graph.h
@@ -167,12 +167,6 @@ SwsGraph *ff_sws_graph_alloc(void);
 int ff_sws_graph_init(SwsGraph *graph, SwsContext *ctx, const SwsFormat *dst,
                       const SwsFormat *src);
 
-/**
- * Allocate and initialize the filter graph. Returns 0 or a negative error.
- */
-int ff_sws_graph_create(SwsContext *ctx, const SwsFormat *dst, const SwsFormat 
*src,
-                        SwsGraph **out_graph);
-
 
 /**
  * Allocate and add a new pass to the filter graph. Takes over ownership of

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to