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

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

#include <graph.h>

Data Fields

 
 
int  num_threads
 
bool  incomplete
 
bool  noop
 
 
 
int  plane_copy [4]
  Map of planes which directly copied from the input.
 
  Sorted sequence of filter passes to apply.
 
int  num_passes
 
  Cached copy of the public options that were used to construct this SwsGraph.
 
  Currently active format and processing parameters.
 
 
  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

SwsContext* SwsGraph::ctx

Definition at line 133 of file graph.h.

Referenced by add_convert_pass(), add_legacy_sws_pass(), add_ops_convert_pass(), compile_single(), compile_subpass(), ff_sws_compile_pass(), ff_sws_graph_init(), generate_3dlut(), init_passes(), main(), main(), pass_alloc_output(), and sws_uops_macros_gen().

◆  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

Definition at line 136 of file graph.h.

Referenced by add_legacy_sws_pass(), add_ops_convert_pass(), generate_3dlut(), and sws_frame_setup().

◆  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

int SwsGraph::num_passes

Definition at line 154 of file graph.h.

Referenced by ff_sws_compile_pass(), 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().

◆  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

SwsFormat SwsGraph::dst

Definition at line 165 of file graph.h.

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

◆  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:

Generated on Sun Sep 6 2026 19:21:28 for FFmpeg by doxygen 1.13.2

AltStyle によって変換されたページ (->オリジナル) /