Go to the documentation of this file.
21 #ifndef SWSCALE_GRAPH_H
22 #define SWSCALE_GRAPH_H
154 const int out_linesize[4],
155 const uint8_t *
const in_data[4],
156 const int in_linesize[4]);
AVPixelFormat
Pixel format.
AVSliceThread * slicethread
Represents a single filter pass in the scaling graph.
SwsPass ** passes
Sorted sequence of filter passes to apply.
SwsImg output
Filter output buffer.
void sws_graph_free(SwsGraph **graph)
Uninitialize any state associate with this filter graph and free it.
enum AVPixelFormat format
void(* sws_filter_run_t)(const SwsImg *out, const SwsImg *in, int y, int h, const SwsPass *pass)
Output h lines of filtered data.
SwsFormat src
Currently active format and processing parameters.
void(* free)(void *priv)
Optional private state and associated free() function.
Represents a view into a single field of frame data.
struct AVSliceThread AVSliceThread
SwsContext opts_copy
Cached copy of the public options that were used to construct this SwsGraph.
void sws_graph_update_metadata(SwsGraph *graph, const SwsColor *color)
Update dynamic per-frame HDR metadata without requiring a full reinit.
void sws_graph_run(SwsGraph *graph, uint8_t *const out_data[4], const int out_linesize[4], const uint8_t *const in_data[4], const int in_linesize[4])
Dispatch the filter graph on a single field.
void(* setup)(const SwsImg *out, const SwsImg *in, const SwsPass *pass)
Called once from the main thread before running the filter.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this field
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
int sws_graph_reinit(SwsContext *ctx, const SwsFormat *dst, const SwsFormat *src, int field, SwsGraph **graph)
Wrapper around sws_graph_create() that reuses the existing graph if the format is compatible.
struct SwsGraph::@461 exec
Temporary execution state inside sws_graph_run.
Filter graph, which represents a 'baked' pixel format conversion.
sws_filter_run_t run
Filter main execution function.
int sws_graph_create(SwsContext *ctx, const SwsFormat *dst, const SwsFormat *src, int field, SwsGraph **out_graph)
Allocate and initialize the filter graph.
const SwsPass * input
Filter input.
Main external API structure.