|
| | AVFILTER_DEFINE_CLASS (nlmeans) |
| |
| static void | compute_unsafe_ssd_integral_image (uint32_t *dst, ptrdiff_t dst_linesize_32, int startx, int starty, const uint8_t *src, ptrdiff_t linesize, int offx, int offy, int r, int sw, int sh, int w, int h) |
| | Compute squared difference of an unsafe area (the zone nor s1 nor s2 could be readable).
|
| |
| static void | compute_ssd_integral_image (const NLMeansDSPContext *dsp, uint32_t *ii, ptrdiff_t ii_linesize_32, const uint8_t *src, ptrdiff_t linesize, int offx, int offy, int e, int w, int h) |
| |
| static int | config_input (AVFilterLink *inlink) |
| |
| static int | nlmeans_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
| |
| static void | weight_averages (uint8_t *dst, ptrdiff_t dst_linesize, const uint8_t *src, ptrdiff_t src_linesize, float *total_weight, float *sum, ptrdiff_t linesize, int w, int h) |
| |
| static int | nlmeans_plane (AVFilterContext *ctx, int w, int h, int p, int r, uint8_t *dst, ptrdiff_t dst_linesize, const uint8_t *src, ptrdiff_t src_linesize) |
| |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
| |
| static av_cold int | init (AVFilterContext *ctx) |
| |
| static av_cold void | uninit (AVFilterContext *ctx) |
| |
| static void compute_unsafe_ssd_integral_image |
( |
uint32_t * | dst, |
|
|
ptrdiff_t | dst_linesize_32, |
|
|
int | startx, |
|
|
int | starty, |
|
|
const uint8_t * | src, |
|
|
ptrdiff_t | linesize, |
|
|
int | offx, |
|
|
int | offy, |
|
|
int | r, |
|
|
int | sw, |
|
|
int | sh, |
|
|
int | w, |
|
|
int | h ) |
|
inlinestatic |
Compute squared difference of an unsafe area (the zone nor s1 nor s2 could be readable).
On the other hand, the line above dst and the column to its left are always readable.
There is little point in having this function SIMDified as it is likely too complex and only handle small portions of the image.
- Parameters
-
| dst | integral image |
| dst_linesize_32 | integral image linesize (in 32-bit integers unit) |
| startx | integral starting x position |
| starty | integral starting y position |
| src | source plane buffer |
| linesize | source plane linesize |
| offx | source offsetting in x |
| offy | source offsetting in y @paran r absolute maximum source offsetting |
| sw | source width |
| sh | source height |
| w | width to compute |
| h | height to compute |
Definition at line 112 of file vf_nlmeans.c.
Referenced by compute_ssd_integral_image(), and main().