FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | SwsImg |
Represents a view into a single field of frame data. More... | |
struct | SwsPass |
Represents a single filter pass in the scaling graph. More... | |
struct | SwsGraph |
Filter graph, which represents a 'baked' pixel format conversion. More... | |
Typedefs | |
typedef void(* | sws_filter_run_t) (const SwsImg *out, const SwsImg *in, int y, int h, const SwsPass *pass) |
Output h lines of filtered data. More... | |
Functions | |
int | sws_graph_create (SwsContext *ctx, const SwsFormat *dst, const SwsFormat *src, int field, SwsGraph **out_graph) |
Allocate and initialize the filter graph. More... | |
void | sws_graph_free (SwsGraph **graph) |
Uninitialize any state associate with this filter graph and free it. More... | |
int | sws_graph_reinit (SwsContext *ctx, const SwsFormat *dst, const SwsFormat *src, int field, SwsGraph **graph) |
Wrapper around sws_graph_create that does nothing if the format is unchanged. More... | |
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. More... | |
int sws_graph_create | ( | SwsContext * | ctx, |
const SwsFormat * | dst, | ||
const SwsFormat * | src, | ||
int | field, | ||
SwsGraph ** | out_graph | ||
) |
Allocate and initialize the filter graph.
Returns 0 or a negative error.
Definition at line 508 of file graph.c.
Referenced by sws_graph_reinit().
void sws_graph_free | ( | SwsGraph ** | graph | ) |
Uninitialize any state associate with this filter graph and free it.
Definition at line 546 of file graph.c.
Referenced by sws_frame_setup(), sws_freeContext(), sws_graph_create(), and sws_graph_reinit().
int sws_graph_reinit | ( | SwsContext * | ctx, |
const SwsFormat * | dst, | ||
const SwsFormat * | src, | ||
int | field, | ||
SwsGraph ** | graph | ||
) |
Wrapper around sws_graph_create that does nothing if the format is unchanged.
Must be called after changing any of the fields in ctx
, or else they will have no effect.
Definition at line 584 of file graph.c.
Referenced by sws_frame_setup().
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.
Internally threaded.
Definition at line 598 of file graph.c.
Referenced by sws_scale_frame().