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

Represents a computed filter kernel. More...

#include <filters.h>

Data Fields

int filter_size
 The number of source texels to convolve over for each row.
 
int * weights
 The computed look-up table (LUT).
 
size_t num_weights
 
int * offsets
 The computed source pixel positions for each row of the filter.
 
SwsScaler scaler
 Copy of the parameters used to generate this filter, for reference.
 
int src_size
 
int dst_size
 
double virtual_size
 
double offset
 
int sum_positive
 Extra metadata about the filter, used to inform the optimizer / range tracker about the filter's behavior.
 
int sum_negative
 

Detailed Description

Represents a computed filter kernel.

Definition at line 91 of file filters.h.

Field Documentation

◆ filter_size

int SwsFilterWeights::filter_size

The number of source texels to convolve over for each row.

Definition at line 95 of file filters.h.

Referenced by emit_read_filtered(), and ff_sws_op_desc().

◆ weights

int* SwsFilterWeights::weights

The computed look-up table (LUT).

This is interpreted as a 2D array with dimensions [dst_height][row_size]. The inner rows contain the row_size samples to convolve with the corresponding input pixels. The outer coordinate is indexed by the position of the sample to reconstruct.

Definition at line 103 of file filters.h.

Referenced by create_filter_buf().

◆ num_weights

size_t SwsFilterWeights::num_weights

Definition at line 104 of file filters.h.

Referenced by create_filter_buf(), and emit_read_filtered().

◆ offsets

int* SwsFilterWeights::offsets

The computed source pixel positions for each row of the filter.

This indexes into the source image, and gives the position of the first source pixel to convolve with for each entry.

Definition at line 111 of file filters.h.

Referenced by check_compiled(), and create_filter_buf().

◆ scaler

SwsScaler SwsFilterWeights::scaler

Copy of the parameters used to generate this filter, for reference.

Definition at line 116 of file filters.h.

Referenced by ff_sws_op_desc().

◆ src_size

int SwsFilterWeights::src_size

Definition at line 117 of file filters.h.

Referenced by ff_sws_op_desc().

◆ dst_size

int SwsFilterWeights::dst_size

Definition at line 118 of file filters.h.

Referenced by create_filter_buf(), emit_read_filtered(), and ff_sws_op_desc().

◆ virtual_size

double SwsFilterWeights::virtual_size

Definition at line 119 of file filters.h.

◆ offset

double SwsFilterWeights::offset

Definition at line 120 of file filters.h.

◆ sum_positive

int SwsFilterWeights::sum_positive

Extra metadata about the filter, used to inform the optimizer / range tracker about the filter's behavior.

Definition at line 126 of file filters.h.

◆ sum_negative

int SwsFilterWeights::sum_negative

Definition at line 127 of file filters.h.


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