|
FFmpeg
|
Go to the source code of this file.
Data Structures | |
| struct | SwsFilterParams |
| struct | SwsFilterWeights |
| Represents a computed filter kernel. More... | |
Enumerations | |
| enum | { SWS_FILTER_SCALE = (1 << 14), SWS_FILTER_SIZE_MAX = 256 } |
Functions | |
| int | ff_sws_filter_generate (void *log_ctx, const SwsFilterParams *params, SwsFilterWeights **out) |
| Generate a filter kernel for the given parameters. More... | |
| anonymous enum |
| int ff_sws_filter_generate | ( | void * | log_ctx, |
| const SwsFilterParams * | params, | ||
| SwsFilterWeights ** | out | ||
| ) |
Generate a filter kernel for the given parameters.
The generated filter is allocated as a refstruct and must be unref'd by the caller.
Returns 0 or a negative error code. In particular, this may return:
SWS_SCALE_AREA is a pseudo-filter that is equivalent to bilinear filtering for upscaling (since bilinear just evenly mixes samples according to the relative distance), and equivalent to (anti-aliased) point sampling for downscaling.
Definition at line 183 of file filters.c.
Referenced by check_filter().
1.8.17