FFmpeg
|
#include <float.h>
#include "libavutil/imgutils.h"
#include "libavutil/attributes.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"
Go to the source code of this file.
Data Structures | |
struct | VagueDenoiserContext |
Macros | |
#define | OFFSET(x) offsetof(VagueDenoiserContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM |
#define | NPAD 10 |
Functions | |
AVFILTER_DEFINE_CLASS (vaguedenoiser) | |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static void | copy (const float *p1, float *p2, const int length) |
static void | copyv (const float *p1, const int stride1, float *p2, const int length) |
static void | copyh (const float *p1, float *p2, const int stride2, const int length) |
static void | symmetric_extension (float *output, const int size, const int left_ext, const int right_ext) |
static void | transform_step (float *input, float *output, const int size, const int low_size, VagueDenoiserContext *s) |
static void | invert_step (const float *input, float *output, float *temp, const int size, VagueDenoiserContext *s) |
static void | hard_thresholding (float *block, const int width, const int height, const int stride, const float threshold, const float percent) |
static void | soft_thresholding (float *block, const int width, const int height, const int stride, const float threshold, const float percent) |
static void | qian_thresholding (float *block, const int width, const int height, const int stride, const float threshold, const float percent) |
static float | bayes_threshold (float *block, const int width, const int height, const int stride, const float threshold) |
static void | filter (VagueDenoiserContext *s, AVFrame *in, AVFrame *out) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static av_cold int | init (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | vaguedenoiser_options [] |
static const float | analysis_low [9] |
static const float | analysis_high [7] |
static const float | synthesis_low [7] |
static const float | synthesis_high [9] |
static const AVFilterPad | vaguedenoiser_inputs [] |
static const AVFilterPad | vaguedenoiser_outputs [] |
AVFilter | ff_vf_vaguedenoiser |
#define OFFSET | ( | x | ) | offsetof(VagueDenoiserContext, x) |
Definition at line 67 of file vf_vaguedenoiser.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 68 of file vf_vaguedenoiser.c.
#define NPAD 10 |
Definition at line 86 of file vf_vaguedenoiser.c.
AVFILTER_DEFINE_CLASS | ( | vaguedenoiser | ) |
|
static |
Definition at line 108 of file vf_vaguedenoiser.c.
|
static |
Definition at line 141 of file vf_vaguedenoiser.c.
|
inlinestatic |
Definition at line 194 of file vf_vaguedenoiser.c.
Referenced by av_buffersrc_add_frame_flags(), av_buffersrc_add_frame_internal(), avfilter_init_str(), bayer_to_rgb24_wrapper(), bayer_to_yv12_wrapper(), count_or_copy(), decode_tdlt(), ff_frame_thread_init(), ff_jni_jstring_to_utf_chars(), filter(), filter_frame(), intra_predict(), qpeg_decode_intra(), read_thread(), rle_uncompress(), roq_decode_frame(), rtmp_write(), run_encryption_info_test(), run_encryption_init_info_test(), and shuffleplanes_filter_frame().
|
inlinestatic |
Definition at line 199 of file vf_vaguedenoiser.c.
Referenced by filter().
|
inlinestatic |
Definition at line 209 of file vf_vaguedenoiser.c.
Referenced by filter().
|
static |
Definition at line 225 of file vf_vaguedenoiser.c.
Referenced by invert_step(), and transform_step().
|
static |
Definition at line 250 of file vf_vaguedenoiser.c.
Referenced by filter().
|
static |
Definition at line 283 of file vf_vaguedenoiser.c.
Referenced by filter().
|
static |
Definition at line 338 of file vf_vaguedenoiser.c.
Referenced by init().
|
static |
Definition at line 354 of file vf_vaguedenoiser.c.
Referenced by init().
|
static |
Definition at line 373 of file vf_vaguedenoiser.c.
Referenced by init().
|
static |
Definition at line 396 of file vf_vaguedenoiser.c.
Referenced by filter().
|
static |
Definition at line 413 of file vf_vaguedenoiser.c.
Referenced by filter_frame().
|
static |
Definition at line 537 of file vf_vaguedenoiser.c.
|
static |
Definition at line 565 of file vf_vaguedenoiser.c.
|
static |
Definition at line 584 of file vf_vaguedenoiser.c.
|
static |
Definition at line 69 of file vf_vaguedenoiser.c.
|
static |
Definition at line 88 of file vf_vaguedenoiser.c.
Referenced by transform_step().
|
static |
Definition at line 93 of file vf_vaguedenoiser.c.
Referenced by transform_step().
|
static |
Definition at line 98 of file vf_vaguedenoiser.c.
Referenced by invert_step().
|
static |
Definition at line 103 of file vf_vaguedenoiser.c.
Referenced by invert_step().
|
static |
Definition at line 594 of file vf_vaguedenoiser.c.
|
static |
Definition at line 605 of file vf_vaguedenoiser.c.
AVFilter ff_vf_vaguedenoiser |
Definition at line 613 of file vf_vaguedenoiser.c.