Go to the documentation of this file.
21 #ifndef SWSCALE_FILTERS_H
22 #define SWSCALE_FILTERS_H
40 #define SWS_NUM_SCALER_PARAMS 2
41 #define SWS_MAX_REDUCE_CUTOFF 0.002
42 #define SWS_PARAM_DEFAULT 123456
int filter_size
The number of source texels to convolve over for each row.
int src_size
The relative sizes of the input and output images.
Represents a computed filter kernel.
@ SWS_SCALE_GAUSSIAN
2-tap gaussian approximation
int * offsets
The computed source pixel positions for each row of the filter.
double virtual_size
The virtual output size.
@ SWS_FILTER_SCALE
14-bit coefficients are picked to fit comfortably within int16_t for efficient SIMD processing (e....
@ SWS_SCALE_LANCZOS
3-tap sinc/sinc
double offset
The sample offset, in units of input pixels.
@ SWS_SCALE_NB
not part of the ABI
@ SWS_SCALE_AREA
area averaging
@ SWS_SCALE_POINT
nearest neighbor (point sampling)
@ SWS_SCALE_BILINEAR
bilinear filtering
@ SWS_SCALE_MAX_ENUM
force size to 32 bits, not a valid filter type
@ SWS_SCALE_SPLINE
unwindowned natural cubic spline
int src_size
Copy of the parameters used to generate this filter, for reference.
int ff_sws_filter_generate(void *log_ctx, const SwsFilterParams *params, SwsFilterWeights **out)
Generate a filter kernel for the given parameters.
char name[16]
Extra metadata about the filter, used to inform the optimizer / range tracker about the filter's beha...
@ SWS_SCALE_BICUBIC
2-tap cubic BC-spline
#define SWS_NUM_SCALER_PARAMS
double scaler_params[SWS_NUM_SCALER_PARAMS]
@ SWS_SCALE_SINC
unwindowed sinc
SwsScaler scaler
The filter kernel and parameters to use.
int * weights
The computed look-up table (LUT).