|
FFmpeg
|
#include <filters.h>
Data Fields | |
| SwsScaler | scaler |
| The filter kernel and parameters to use. More... | |
| double | scaler_params [SWS_NUM_SCALER_PARAMS] |
| int | src_size |
| The relative sizes of the input and output images. More... | |
| int | dst_size |
| double | virtual_size |
| The virtual output size. More... | |
| double | offset |
| The sample offset, in units of input pixels. More... | |
| SwsScaler SwsFilterParams::scaler |
The filter kernel and parameters to use.
Definition at line 49 of file filters.h.
Referenced by check_filter(), and ff_sws_filter_generate().
| double SwsFilterParams::scaler_params[SWS_NUM_SCALER_PARAMS] |
Definition at line 50 of file filters.h.
Referenced by check_filter(), and ff_sws_filter_generate().
| int SwsFilterParams::src_size |
The relative sizes of the input and output images.
Used to determine the number of rows in the output, as well as the fractional offsets of the samples in each row.
Definition at line 57 of file filters.h.
Referenced by check_filter(), and ff_sws_filter_generate().
| int SwsFilterParams::dst_size |
Definition at line 58 of file filters.h.
Referenced by check_filter(), and ff_sws_filter_generate().
| double SwsFilterParams::virtual_size |
The virtual output size.
If zero, this is assumed to be the same as dst_size. Matters for e.g. chroma subsampling, where the the luma plane may be smaller than the dst_size. For example, a 99x99 input image has a chroma size of 50x50, which would be 100x100 after chroma upscaling; but is sampled only at 99x99 resolution. In this instance, dst_size is 99x99 and virtual_size is 100x100.
The upscaling offset from this shift is implicit and does not need to be accounted for in offset. In other words, offset is taken relative to the virtual size, not the sampled size.
Definition at line 72 of file filters.h.
Referenced by ff_sws_filter_generate().
| double SwsFilterParams::offset |
The sample offset, in units of input pixels.
This is added onto all sampled coordinates directly, i.e. a value of offset = 1.0 would shift the output to the top/left by one whole source pixel.
Definition at line 79 of file filters.h.
Referenced by ff_sws_filter_generate().
1.8.17