FFmpeg
|
#include <float.h>
#include "libavutil/common.h"
#include "libavutil/float_dsp.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | FrameData |
struct | NNEDIContext |
Macros | |
#define | OFFSET(x) offsetof(NNEDIContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | NUM_NSIZE 7 |
#define | NUM_NNS 5 |
Functions | |
AVFILTER_DEFINE_CLASS (nnedi) | |
static int | config_input (AVFilterLink *inlink) |
static int | config_output (AVFilterLink *outlink) |
static int | query_formats (AVFilterContext *ctx) |
static void | copy_pad (const AVFrame *src, FrameData *frame_data, NNEDIContext *s, int fn) |
static void | elliott (float *data, const int n) |
static void | dot_prod (NNEDIContext *s, const float *data, const float *weights, float *vals, const int n, const int len, const float *scale) |
static void | dot_prods (NNEDIContext *s, const float *dataf, const float *weightsf, float *vals, const int n, const int len, const float *scale) |
static void | compute_network0 (NNEDIContext *s, const float *input, const float *weights, uint8_t *d) |
static void | compute_network0_i16 (NNEDIContext *s, const float *inputf, const float *weightsf, uint8_t *d) |
static void | pixel2float48 (const uint8_t *t8, const int pitch, float *p) |
static void | byte2word48 (const uint8_t *t, const int pitch, float *pf) |
static int32_t | process_line0 (const uint8_t *tempu, int width, uint8_t *dstp8, const uint8_t *src3p8, const int src_pitch, const int max_value, const int chroma) |
static void | byte2word64 (const uint8_t *t, const int pitch, float *p) |
static void | compute_network0new (NNEDIContext *s, const float *datai, const float *weights, uint8_t *d) |
static void | evalfunc_0 (NNEDIContext *s, FrameData *frame_data) |
static void | extract_m8 (const uint8_t *srcp8, const int stride, const int xdia, const int ydia, float *mstd, float *input) |
static void | extract_m8_i16 (const uint8_t *srcp, const int stride, const int xdia, const int ydia, float *mstd, float *inputf) |
static void | e2_m16 (float *s, const int n) |
static void | weighted_avg_elliott_mul5_m16 (const float *w, const int n, float *mstd) |
static void | evalfunc_1 (NNEDIContext *s, FrameData *frame_data) |
static int | roundds (const double f) |
static void | select_functions (NNEDIContext *s) |
static int | modnpf (const int m, const int n) |
static int | get_frame (AVFilterContext *ctx, int is_second) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *src) |
static int | request_frame (AVFilterLink *link) |
static av_cold int | init (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | nnedi_options [] |
static const float | exp_lo = -80.0f |
static const float | exp_hi = +80.0f |
const float | min_weight_sum = 1e-10f |
static const AVFilterPad | inputs [] |
static const AVFilterPad | outputs [] |
AVFilter | ff_vf_nnedi |
#define OFFSET | ( | x | ) | offsetof(NNEDIContext, x) |
Definition at line 104 of file vf_nnedi.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 105 of file vf_nnedi.c.
#define NUM_NSIZE 7 |
Definition at line 635 of file vf_nnedi.c.
#define NUM_NNS 5 |
Definition at line 636 of file vf_nnedi.c.
AVFILTER_DEFINE_CLASS | ( | nnedi | ) |
|
static |
Definition at line 150 of file vf_nnedi.c.
|
static |
Definition at line 167 of file vf_nnedi.c.
|
static |
Definition at line 184 of file vf_nnedi.c.
|
static |
Definition at line 204 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 260 of file vf_nnedi.c.
Referenced by compute_network0(), and compute_network0_i16().
|
static |
Definition at line 268 of file vf_nnedi.c.
Referenced by compute_network0(), compute_network0_i16(), and select_functions().
|
static |
Definition at line 281 of file vf_nnedi.c.
Referenced by compute_network0_i16(), and select_functions().
|
static |
Definition at line 297 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 314 of file vf_nnedi.c.
Referenced by select_functions().
Definition at line 332 of file vf_nnedi.c.
Referenced by select_functions().
Definition at line 342 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 352 of file vf_nnedi.c.
Referenced by select_functions().
Definition at line 373 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 383 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 418 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 487 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 520 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 552 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 562 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 578 of file vf_nnedi.c.
Referenced by select_functions().
|
static |
Definition at line 638 of file vf_nnedi.c.
Referenced by init().
|
static |
Definition at line 645 of file vf_nnedi.c.
Referenced by init().
Definition at line 682 of file vf_nnedi.c.
Referenced by get_frame().
|
static |
Definition at line 689 of file vf_nnedi.c.
Referenced by filter_frame(), and vtenc_frame().
|
static |
Definition at line 794 of file vf_nnedi.c.
Referenced by request_frame().
|
static |
Definition at line 879 of file vf_nnedi.c.
|
static |
Definition at line 907 of file vf_nnedi.c.
|
static |
Definition at line 1159 of file vf_nnedi.c.
|
static |
Definition at line 107 of file vf_nnedi.c.
|
static |
Definition at line 549 of file vf_nnedi.c.
Referenced by e2_m16().
|
static |
Definition at line 550 of file vf_nnedi.c.
Referenced by e2_m16().
const float min_weight_sum = 1e-10f |
Definition at line 560 of file vf_nnedi.c.
Referenced by weighted_avg_elliott_mul5_m16().
|
static |
Definition at line 1180 of file vf_nnedi.c.
|
static |
Definition at line 1190 of file vf_nnedi.c.
AVFilter ff_vf_nnedi |
Definition at line 1200 of file vf_nnedi.c.