FFmpeg
Data Fields
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. More...
 
int * weights
 The computed look-up table (LUT). More...
 
size_t num_weights
 
int * offsets
 The computed source pixel positions for each row of the filter. More...
 
int src_size
 Copy of the parameters used to generate this filter, for reference. More...
 
int dst_size
 
char name [16]
 Extra metadata about the filter, used to inform the optimizer / range tracker about the filter's behavior. More...
 
int sum_positive
 
int sum_negative
 

Detailed Description

Represents a computed filter kernel.

Definition at line 64 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 68 of file filters.h.

Referenced by 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 76 of file filters.h.

◆ num_weights

size_t SwsFilterWeights::num_weights

Definition at line 77 of file filters.h.

◆ 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 84 of file filters.h.

Referenced by check_ops().

◆ src_size

int SwsFilterWeights::src_size

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

Definition at line 89 of file filters.h.

Referenced by ff_sws_op_desc().

◆ dst_size

int SwsFilterWeights::dst_size

Definition at line 90 of file filters.h.

Referenced by ff_sws_op_desc().

◆ name

char SwsFilterWeights::name[16]

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

Definition at line 96 of file filters.h.

Referenced by ff_sws_op_desc().

◆ sum_positive

int SwsFilterWeights::sum_positive

Definition at line 97 of file filters.h.

◆ sum_negative

int SwsFilterWeights::sum_negative

Definition at line 98 of file filters.h.


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