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

Filter graph, which represents a 'baked' pixel format conversion. More...

#include <graph.h>

Data Fields

SwsContextctx
 
AVSliceThreadslicethread
 
int num_threads
 
bool incomplete
 
bool noop
 
SwsBackend backend
 
AVBufferRefhw_frames_ref
 
int plane_copy [4]
 Map of planes which directly copied from the input.
 
SwsPass ** passes
 Sorted sequence of filter passes to apply.
 
int num_passes
 
SwsContext opts_copy
 Cached copy of the public options that were used to construct this SwsGraph.
 
SwsFormat src
 Currently active format and processing parameters.
 
SwsFormat dst
 
SwsLut3Dlut3d
 3DLUT state used for gamut/tone mapping.
 
struct { 
 
   const SwsPass *   pass 
 
   const SwsFrame *   input 
 
   const SwsFrame *   output 
 
exec 
 Temporary execution state inside ff_sws_graph_run(); used to pass data to worker threads.
 

Detailed Description

Filter graph, which represents a 'baked' pixel format conversion.

Definition at line 132 of file graph.h.

Field Documentation

◆ ctx

◆ slicethread

AVSliceThread* SwsGraph::slicethread

Definition at line 134 of file graph.h.

Referenced by ff_sws_graph_init(), ff_sws_graph_run(), and graph_uninit().

◆ num_threads

int SwsGraph::num_threads

Definition at line 135 of file graph.h.

Referenced by ff_sws_graph_add_pass(), and ff_sws_graph_init().

◆ incomplete

bool SwsGraph::incomplete

◆ noop

bool SwsGraph::noop

Definition at line 137 of file graph.h.

Referenced by init_passes(), and sws_frame_setup().

◆ backend

SwsBackend SwsGraph::backend

Definition at line 138 of file graph.h.

Referenced by ff_sws_graph_init().

◆ hw_frames_ref

AVBufferRef* SwsGraph::hw_frames_ref

Definition at line 140 of file graph.h.

◆ plane_copy

int SwsGraph::plane_copy[4]

Map of planes which directly copied from the input.

These may be promoted from a memcpy to a refcopy. This requires special handling by the caller.

Each entry maps the output index to the corresponding input plane index, or -1 for no copythrough.

Definition at line 150 of file graph.h.

Referenced by ff_sws_graph_init(), init_passes(), and sws_scale_frame().

◆ passes

SwsPass** SwsGraph::passes

Sorted sequence of filter passes to apply.

Definition at line 153 of file graph.h.

Referenced by ff_sws_graph_add_pass(), ff_sws_graph_init(), ff_sws_graph_rollback(), ff_sws_graph_run(), graph_uninit(), init_passes(), and sws_frame_setup().

◆ num_passes

◆ opts_copy

SwsContext SwsGraph::opts_copy

Cached copy of the public options that were used to construct this SwsGraph.

Used only to detect when the graph needs to be reinitialized.

Definition at line 160 of file graph.h.

Referenced by ff_sws_graph_init(), and ff_sws_graph_reinit().

◆ src

SwsFormat SwsGraph::src

Currently active format and processing parameters.

Definition at line 165 of file graph.h.

Referenced by ff_sws_graph_init(), ff_sws_graph_reinit(), ff_sws_graph_run(), ff_sws_graph_update_metadata(), init_passes(), and pass_alloc_output().

◆ dst

◆ lut3d

SwsLut3D* SwsGraph::lut3d

3DLUT state used for gamut/tone mapping.

(Optional)

Definition at line 170 of file graph.h.

Referenced by add_legacy_3dlut_pass(), ff_sws_graph_update_metadata(), generate_3dlut(), graph_uninit(), init_passes(), and run_legacy_lut3d().

◆ pass

const SwsPass* SwsGraph::pass

Definition at line 177 of file graph.h.

Referenced by ff_sws_graph_run(), and sws_graph_worker().

◆ input

const SwsFrame* SwsGraph::input

Definition at line 178 of file graph.h.

Referenced by ff_sws_graph_run(), and sws_graph_worker().

◆ output

const SwsFrame* SwsGraph::output

Definition at line 179 of file graph.h.

Referenced by ff_sws_graph_run(), and sws_graph_worker().

◆ [struct]

struct { ... } SwsGraph::exec

Temporary execution state inside ff_sws_graph_run(); used to pass data to worker threads.

Referenced by ff_sws_graph_run(), and sws_graph_worker().


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