FFmpeg
Functions
vf_nlmeans_init.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/macros.h"
#include "vf_nlmeans.h"

Go to the source code of this file.

Functions

static void compute_safe_ssd_integral_image_c (uint32_t *dst, ptrdiff_t dst_linesize_32, const uint8_t *s1, ptrdiff_t linesize1, const uint8_t *s2, ptrdiff_t linesize2, int w, int h)
 Compute squared difference of the safe area (the zone where s1 and s2 overlap). More...
 
static void compute_weights_line_c (const uint32_t *const iia, const uint32_t *const iib, const uint32_t *const iid, const uint32_t *const iie, const uint8_t *const src, float *total_weight, float *sum, const float *const weight_lut, int max_meaningful_diff, int startx, int endx)
 
static av_unused void ff_nlmeans_init (NLMeansDSPContext *dsp)
 

Function Documentation

◆ compute_safe_ssd_integral_image_c()

static void compute_safe_ssd_integral_image_c ( uint32_t *  dst,
ptrdiff_t  dst_linesize_32,
const uint8_t *  s1,
ptrdiff_t  linesize1,
const uint8_t *  s2,
ptrdiff_t  linesize2,
int  w,
int  h 
)
static

Compute squared difference of the safe area (the zone where s1 and s2 overlap).

It is likely the largest integral zone, so it is interesting to do as little checks as possible; contrary to the unsafe version of this function, we do not need any clipping here.

The line above dst and the column to its left are always readable.

Definition at line 40 of file vf_nlmeans_init.h.

Referenced by ff_nlmeans_init().

◆ compute_weights_line_c()

static void compute_weights_line_c ( const uint32_t *const  iia,
const uint32_t *const  iib,
const uint32_t *const  iid,
const uint32_t *const  iie,
const uint8_t *const  src,
float total_weight,
float sum,
const float *const  weight_lut,
int  max_meaningful_diff,
int  startx,
int  endx 
)
static

Definition at line 74 of file vf_nlmeans_init.h.

Referenced by ff_nlmeans_init().

◆ ff_nlmeans_init()

static av_unused void ff_nlmeans_init ( NLMeansDSPContext dsp)
static

Definition at line 127 of file vf_nlmeans_init.h.

Referenced by checkasm_check_nlmeans(), init(), and main().