FFmpeg
|
Simple post processing filter. More...
#include "libavcodec/dsputil.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "internal.h"
#include "vf_spp.h"
Go to the source code of this file.
Macros | |
#define | OFFSET(x) offsetof(SPPContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | STORE(pos) |
Enumerations | |
enum | mode { MODE_NONE, MODE_RO, MODE_RW, MODE_TOGGLE, MODE_RANDOM, NB_MODES, PROGRESSIVE, TOP_FIRST, BOTTOM_FIRST, TOP_FIRST_ANALYZE, BOTTOM_FIRST_ANALYZE, ANALYZE, FULL_ANALYZE, AUTO, AUTO_ANALYZE, MODE_HARD, MODE_SOFT, NB_MODES } |
Functions | |
AVFILTER_DEFINE_CLASS (spp) | |
static void | hardthresh_c (int16_t dst[64], const int16_t src[64], int qp, const uint8_t *permutation) |
static void | softthresh_c (int16_t dst[64], const int16_t src[64], int qp, const uint8_t *permutation) |
static void | store_slice_c (uint8_t *dst, const int16_t *src, int dst_linesize, int src_linesize, int width, int height, int log2_scale, const uint8_t dither[8][8]) |
static void | add_block (int16_t *dst, int linesize, const int16_t block[64]) |
static int | norm_qscale (int qscale, int type) |
static void | filter (SPPContext *p, uint8_t *dst, uint8_t *src, int dst_linesize, int src_linesize, int width, int height, const uint8_t *qp_table, int qp_stride, int is_luma) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
static av_cold int | init (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | spp_options [] |
static const uint8_t | ldither [8][8] |
static const uint8_t | offset [127][2] |
static const AVFilterPad | spp_inputs [] |
static const AVFilterPad | spp_outputs [] |
AVFilter | avfilter_vf_spp |
Simple post processing filter.
This implementation is based on an algorithm described in "Aria Nosratinia Embedded Post-Processing for Enhancement of Compressed Images (1999)"
Originally written by Michael Niedermayer for the MPlayer project, and ported by Clément Bœsch for FFmpeg.
Definition in file vf_spp.c.
#define OFFSET | ( | x | ) | offsetof(SPPContext, x) |
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define STORE | ( | pos | ) |
enum mode |
AVFILTER_DEFINE_CLASS | ( | spp | ) |
|
inlinestatic |
|
inlinestatic |
|
static |
Definition at line 195 of file vf_spp.c.
Referenced by filter_frame().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 63 of file vf_spp.c.
Referenced by filter().
|
static |
Definition at line 74 of file vf_spp.c.
Referenced by filter().
|
static |
|
static |
AVFilter avfilter_vf_spp |