#include "libavutil/pixdesc.h"
#include "libswscale/swscale.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
| struct | FilterParam | 
| struct | SmartblurContext | 
Defines | |
| #define | RADIUS_MIN 0.1 | 
| #define | RADIUS_MAX 5.0 | 
| #define | STRENGTH_MIN -1.0 | 
| #define | STRENGTH_MAX 1.0 | 
| #define | THRESHOLD_MIN -30 | 
| #define | THRESHOLD_MAX 30 | 
| #define | CHECK_PARAM(param, name, min, max, format, ret) | 
Functions | |
| static av_cold int | init (AVFilterContext *ctx, const char *args) | 
| static av_cold void | uninit (AVFilterContext *ctx) | 
| static int | query_formats (AVFilterContext *ctx) | 
| static int | alloc_sws_context (FilterParam *f, int width, int height, unsigned int flags) | 
| static int | config_props (AVFilterLink *inlink) | 
| static void | blur (uint8_t *dst, const int dst_linesize, const uint8_t *src, const int src_linesize, const int w, const int h, const int threshold, struct SwsContext *filter_context) | 
| static int | end_frame (AVFilterLink *inlink) | 
Variables | |
| AVFilter | avfilter_vf_smartblur | 
Definition in file vf_smartblur.c.
Value:
if (param < min || param > max) { \ av_log(ctx, AV_LOG_ERROR, \ "Invalid " #name " value " #format ": " \ "must be included between range " #format " and " #format "\n",\ param, min, max); \ ret = AVERROR(EINVAL); \ }
Definition at line 60 of file vf_smartblur.c.
Referenced by init().
| #define RADIUS_MAX 5.0 | 
| #define RADIUS_MIN 0.1 | 
| #define STRENGTH_MAX 1.0 | 
| #define STRENGTH_MIN -1.0 | 
| #define THRESHOLD_MAX 30 | 
| #define THRESHOLD_MIN -30 | 
| static int alloc_sws_context | ( | FilterParam * | f, | |
| int | width, | |||
| int | height, | |||
| unsigned int | flags | |||
| ) |  [static] | 
        
| static void blur | ( | uint8_t * | dst, | |
| const int | dst_linesize, | |||
| const uint8_t * | src, | |||
| const int | src_linesize, | |||
| const int | w, | |||
| const int | h, | |||
| const int | threshold, | |||
| struct SwsContext * | filter_context | |||
| ) |  [static] | 
        
Definition at line 185 of file vf_smartblur.c.
| static int config_props | ( | AVFilterLink * | inlink | ) |  [static] | 
        
Definition at line 169 of file vf_smartblur.c.
| static int end_frame | ( | AVFilterLink * | inlink | ) |  [static] | 
        
Definition at line 249 of file vf_smartblur.c.
| static av_cold int init | ( | AVFilterContext * | ctx, | |
| const char * | args | |||
| ) |  [static] | 
        
Definition at line 69 of file vf_smartblur.c.
| static int query_formats | ( | AVFilterContext * | ctx | ) |  [static] | 
        
Definition at line 127 of file vf_smartblur.c.
| static av_cold void uninit | ( | AVFilterContext * | ctx | ) |  [static] | 
        
Definition at line 119 of file vf_smartblur.c.
Initial value:
 {
    .name        = "smartblur",
    .description = NULL_IF_CONFIG_SMALL("Blur the input video without impacting the outlines."),
    .priv_size = sizeof(SmartblurContext),
    .init          = init,
    .uninit        = uninit,
    .query_formats = query_formats,
    .inputs = (const AVFilterPad[]) {
        {
            .name         = "default",
            .type         = AVMEDIA_TYPE_VIDEO,
            .end_frame    = end_frame,
            .config_props = config_props,
            .min_perms    = AV_PERM_READ,
        },
        { .name = NULL }
    },
    .outputs = (const AVFilterPad[]) {
        {
            .name         = "default",
            .type         = AVMEDIA_TYPE_VIDEO,
        },
        { .name = NULL }
    }
}
Definition at line 276 of file vf_smartblur.c.
 1.5.8