FFmpeg
Data Fields
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
 
AVBufferRefhw_frames_ref
 
SwsPass ** passes
 Sorted sequence of filter passes to apply. More...
 
int num_passes
 
SwsContext opts_copy
 Cached copy of the public options that were used to construct this SwsGraph. More...
 
SwsFormat src
 Currently active format and processing parameters. More...
 
SwsFormat dst
 
int field
 
AVFramefield_tmp [2]
 Temporary storage to hold individual fields of the input frames. More...
 
struct {
   const SwsPass *   pass
 
   const AVFrame *   input
 
   const AVFrame *   output
 
exec
 Temporary execution state inside ff_sws_graph_run(); used to pass data to worker threads. More...
 

Detailed Description

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

Definition at line 101 of file graph.h.

Field Documentation

◆ ctx

SwsContext* SwsGraph::ctx

Definition at line 102 of file graph.h.

Referenced by adapt_colors(), add_legacy_sws_pass(), and ff_sws_graph_create().

◆ slicethread

AVSliceThread* SwsGraph::slicethread

Definition at line 103 of file graph.h.

Referenced by ff_sws_graph_create(), ff_sws_graph_free(), and ff_sws_graph_run().

◆ num_threads

int SwsGraph::num_threads

Definition at line 104 of file graph.h.

Referenced by ff_sws_graph_add_pass().

◆ incomplete

bool SwsGraph::incomplete

Definition at line 105 of file graph.h.

Referenced by adapt_colors(), add_legacy_sws_pass(), and get_chroma_pos().

◆ noop

bool SwsGraph::noop

Definition at line 106 of file graph.h.

Referenced by init_passes().

◆ hw_frames_ref

AVBufferRef* SwsGraph::hw_frames_ref

Definition at line 108 of file graph.h.

◆ passes

SwsPass** SwsGraph::passes

Sorted sequence of filter passes to apply.

Definition at line 111 of file graph.h.

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

◆ num_passes

int SwsGraph::num_passes

Definition at line 112 of file graph.h.

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

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

Referenced by ff_sws_graph_create(), and ff_sws_graph_reinit().

◆ src

SwsFormat SwsGraph::src

Currently active format and processing parameters.

Definition at line 123 of file graph.h.

Referenced by ff_sws_graph_create(), ff_sws_graph_reinit(), ff_sws_graph_run(), ff_sws_graph_update_metadata(), init_passes(), and setup_lut3d().

◆ dst

SwsFormat SwsGraph::dst

◆ field

int SwsGraph::field

Definition at line 124 of file graph.h.

Referenced by ff_sws_graph_create(), get_chroma_pos(), and get_field().

◆ field_tmp

AVFrame* SwsGraph::field_tmp[2]

Temporary storage to hold individual fields of the input frames.

No actual ownership over the data.

Definition at line 130 of file graph.h.

Referenced by ff_sws_graph_create(), ff_sws_graph_free(), and ff_sws_graph_run().

◆ pass

const SwsPass* SwsGraph::pass

Definition at line 137 of file graph.h.

Referenced by ff_sws_graph_run(), and sws_graph_worker().

◆ input

const AVFrame* SwsGraph::input

Definition at line 138 of file graph.h.

Referenced by ff_sws_graph_run(), and sws_graph_worker().

◆ output

const AVFrame* SwsGraph::output

Definition at line 139 of file graph.h.

Referenced by ff_sws_graph_run(), and sws_graph_worker().

◆ exec

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: