FFmpeg
Data Fields
SwsPass Struct Reference

Represents a single filter pass in the scaling graph. More...

#include <graph.h>

Data Fields

const SwsGraphgraph
 
sws_filter_run_t run
 Filter main execution function. More...
 
enum AVPixelFormat format
 
int width
 
int height
 
int slice_h
 
int num_slices
 
const SwsPassinput
 Filter input. More...
 
SwsImg output
 Filter output buffer. More...
 
void(* setup )(const SwsImg *out, const SwsImg *in, const SwsPass *pass)
 Called once from the main thread before running the filter. More...
 
void(* free )(void *priv)
 Optional private state and associated free() function. More...
 
void * priv
 

Detailed Description

Represents a single filter pass in the scaling graph.

Each filter will read from some previous pass's output, and write to a buffer associated with the pass (or into the final output image).

Definition at line 52 of file graph.h.

Field Documentation

◆ graph

const SwsGraph* SwsPass::graph

Definition at line 53 of file graph.h.

Referenced by pass_add().

◆ run

sws_filter_run_t SwsPass::run

Filter main execution function.

Called from multiple threads, with the granularity dictated by slice_h. Individual slices sent to run are always equal to (or smaller than, for the last slice) slice_h.

Definition at line 60 of file graph.h.

Referenced by pass_add(), and sws_graph_worker().

◆ format

enum AVPixelFormat SwsPass::format

Definition at line 61 of file graph.h.

Referenced by pass_add(), and pass_alloc_output().

◆ width

int SwsPass::width

Definition at line 62 of file graph.h.

Referenced by pass_add(), pass_alloc_output(), run_rgb0(), run_rgb2xyz(), and run_xyz2rgb().

◆ height

int SwsPass::height

Definition at line 62 of file graph.h.

Referenced by pass_add(), and sws_graph_worker().

◆ slice_h

int SwsPass::slice_h

Definition at line 63 of file graph.h.

Referenced by pass_add(), pass_alloc_output(), slice_ctx(), and sws_graph_worker().

◆ num_slices

int SwsPass::num_slices

Definition at line 64 of file graph.h.

Referenced by init_legacy_subpass(), pass_add(), pass_alloc_output(), slice_ctx(), and sws_graph_run().

◆ input

const SwsPass* SwsPass::input

Filter input.

This pass's output will be resolved to form this pass's. input. If NULL, the original input image is used.

Definition at line 70 of file graph.h.

Referenced by pass_add(), and sws_graph_worker().

◆ output

SwsImg SwsPass::output

Filter output buffer.

Allocated on demand and freed automatically.

Definition at line 75 of file graph.h.

Referenced by pass_add(), pass_alloc_output(), sws_graph_free(), and sws_graph_worker().

◆ setup

void(* SwsPass::setup) (const SwsImg *out, const SwsImg *in, const SwsPass *pass)

Called once from the main thread before running the filter.

Optional. out and in always point to the main image input/output, regardless of input and output fields.

Definition at line 82 of file graph.h.

Referenced by init_legacy_subpass(), and sws_graph_run().

◆ free

void(* SwsPass::free) (void *priv)

Optional private state and associated free() function.

Definition at line 87 of file graph.h.

Referenced by init_legacy_subpass(), and sws_graph_free().

◆ priv

void* SwsPass::priv

The documentation for this struct was generated from the following file: