FFmpeg
Loading...
Searching...
No Matches
SwsPass Struct Reference

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

#include <graph.h>

Data Fields

const SwsGraphgraph
 
SwsPassFunc run
 Filter main execution function.
 
SwsBackend backend
 
enum AVPixelFormat format
 
int lines
 
int slice_h
 
int num_slices
 
SwsPassinput
 Filter input.
 
SwsPassBufferoutput
 Filter output buffer.
 
SwsPassSetup setup
 Called once from the main thread before running the filter.
 
void(* free )(void *priv)
 Optional private state and associated free() function.
 
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 85 of file graph.h.

Field Documentation

◆ graph

const SwsGraph* SwsPass::graph

Definition at line 86 of file graph.h.

Referenced by ff_sws_graph_add_pass(), pass_alloc_output(), process(), and run_legacy_lut3d().

◆ run

SwsPassFunc 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 93 of file graph.h.

Referenced by ff_sws_graph_add_pass(), ff_sws_graph_run(), and sws_graph_worker().

◆ backend

SwsBackend SwsPass::backend

Definition at line 94 of file graph.h.

Referenced by ff_sws_graph_init(), and init_legacy_subpass().

◆ format

enum AVPixelFormat SwsPass::format

◆ lines

int SwsPass::lines

Definition at line 96 of file graph.h.

Referenced by ff_sws_graph_add_pass(), ff_sws_graph_run(), op_pass_run(), and sws_graph_worker().

◆ slice_h

int SwsPass::slice_h

Definition at line 97 of file graph.h.

Referenced by ff_sws_graph_add_pass(), slice_ctx(), and sws_graph_worker().

◆ num_slices

int SwsPass::num_slices

Definition at line 98 of file graph.h.

Referenced by ff_sws_graph_add_pass(), ff_sws_graph_run(), init_legacy_subpass(), and slice_ctx().

◆ input

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 104 of file graph.h.

Referenced by ff_sws_graph_add_pass(), ff_sws_graph_init(), ff_sws_graph_run(), init_passes(), and pass_alloc_output().

◆ output

SwsPassBuffer* SwsPass::output

Filter output buffer.

This struct is always allocated.

Definition at line 109 of file graph.h.

Referenced by align_pass(), ff_sws_graph_add_pass(), ff_sws_graph_run(), ff_sws_pass_aligned_width(), init_passes(), op_list_get_plane_copy(), pass_alloc_output(), and pass_free().

◆ setup

SwsPassSetup SwsPass::setup

Called once from the main thread before running the filter.

Optional. Returns 0 or a negative error code.

Definition at line 115 of file graph.h.

Referenced by ff_sws_graph_add_pass(), and ff_sws_graph_run().

◆ free

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

Optional private state and associated free() function.

Definition at line 120 of file graph.h.

Referenced by ff_sws_graph_add_pass(), and pass_free().

◆ priv


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