FFmpeg
|
high quality 3d video denoiser, ported from MPlayer libmpcodecs/vf_hqdn3d.c. More...
#include <float.h>
#include "config.h"
#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "vf_hqdn3d.h"
Go to the source code of this file.
Macros | |
#define | LUT_BITS (depth==16 ? 8 : 4) |
#define | LOAD(x) |
#define | STORE(x, val) |
#define | denoise(...) |
#define | PARAM1_DEFAULT 4.0 |
#define | PARAM2_DEFAULT 3.0 |
#define | PARAM3_DEFAULT 6.0 |
#define | OFFSET(x) offsetof(HQDN3DContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
static av_always_inline uint32_t | lowpass (int prev, int cur, int16_t *coef, int depth) |
static av_always_inline void | denoise_temporal (uint8_t *src, uint8_t *dst, uint16_t *frame_ant, int w, int h, int sstride, int dstride, int16_t *temporal, int depth) |
static av_always_inline void | denoise_spatial (HQDN3DContext *hqdn3d, uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t *frame_ant, int w, int h, int sstride, int dstride, int16_t *spatial, int16_t *temporal, int depth) |
static av_always_inline void | denoise_depth (HQDN3DContext *hqdn3d, uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t **frame_ant_ptr, int w, int h, int sstride, int dstride, int16_t *spatial, int16_t *temporal, int depth) |
static int16_t * | precalc_coefs (double dist25, int depth) |
static int | init (AVFilterContext *ctx) |
static void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
Variables | |
static const AVOption | options [] |
static const AVClass | hqdn3d_class |
static const AVFilterPad | avfilter_vf_hqdn3d_inputs [] |
static const AVFilterPad | avfilter_vf_hqdn3d_outputs [] |
AVFilter | avfilter_vf_hqdn3d |
Detailed Description
high quality 3d video denoiser, ported from MPlayer libmpcodecs/vf_hqdn3d.c.
Definition in file vf_hqdn3d.c.
Macro Definition Documentation
#define denoise | ( | ... | ) |
Definition at line 151 of file vf_hqdn3d.c.
Referenced by filter_frame().
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 312 of file vf_hqdn3d.c.
#define LOAD | ( | x | ) |
Definition at line 44 of file vf_hqdn3d.c.
Referenced by denoise_depth(), denoise_spatial(), and denoise_temporal().
#define LUT_BITS (depth==16 ? 8 : 4) |
Definition at line 43 of file vf_hqdn3d.c.
Referenced by denoise_spatial(), denoise_temporal(), lowpass(), and precalc_coefs().
#define OFFSET | ( | x | ) | offsetof(HQDN3DContext, x) |
Definition at line 311 of file vf_hqdn3d.c.
#define PARAM1_DEFAULT 4.0 |
Definition at line 180 of file vf_hqdn3d.c.
Referenced by init().
#define PARAM2_DEFAULT 3.0 |
Definition at line 181 of file vf_hqdn3d.c.
Referenced by init().
#define PARAM3_DEFAULT 6.0 |
Definition at line 182 of file vf_hqdn3d.c.
Referenced by init().
Definition at line 46 of file vf_hqdn3d.c.
Referenced by denoise_spatial(), and denoise_temporal().
Function Documentation
|
static |
Definition at line 248 of file vf_hqdn3d.c.
|
static |
Definition at line 123 of file vf_hqdn3d.c.
|
static |
Definition at line 79 of file vf_hqdn3d.c.
Referenced by denoise_depth().
|
static |
Definition at line 57 of file vf_hqdn3d.c.
Referenced by denoise_depth().
|
static |
Definition at line 274 of file vf_hqdn3d.c.
|
static |
Definition at line 184 of file vf_hqdn3d.c.
|
static |
Definition at line 50 of file vf_hqdn3d.c.
Referenced by denoise_spatial(), and denoise_temporal().
|
static |
Definition at line 159 of file vf_hqdn3d.c.
Referenced by config_input().
|
static |
Definition at line 218 of file vf_hqdn3d.c.
|
static |
Definition at line 204 of file vf_hqdn3d.c.
Variable Documentation
AVFilter avfilter_vf_hqdn3d |
Definition at line 347 of file vf_hqdn3d.c.
|
static |
Definition at line 328 of file vf_hqdn3d.c.
|
static |
Definition at line 339 of file vf_hqdn3d.c.
|
static |
Definition at line 321 of file vf_hqdn3d.c.
|
static |
Definition at line 313 of file vf_hqdn3d.c.
Generated on Mon Nov 18 2024 06:52:10 for FFmpeg by 1.8.11