FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_unsharp.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include "config.h"
#include "mp_msg.h"
#include "cpudetect.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "libvo/fastmemcpy.h"
#include "libavutil/common.h"

Go to the source code of this file.

Data Structures

struct  FilterParam
 
struct  vf_priv_s
 

Macros

#define MIN_MATRIX_SIZE   3
 
#define MAX_MATRIX_SIZE   63
 

Functions

static void unsharp (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int width, int height, FilterParam *fp)
 
static int config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt)
 
static void get_image (struct vf_instance *vf, mp_image_t *mpi)
 
static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
 
static void uninit (struct vf_instance *vf)
 
static int query_format (struct vf_instance *vf, unsigned int fmt)
 
static void parse (FilterParam *fp, char *args)
 
static int vf_open (vf_instance_t *vf, char *args)
 

Variables

static const unsigned int fmt_list []
 
const vf_info_t ff_vf_info_unsharp
 

Macro Definition Documentation

#define MIN_MATRIX_SIZE   3

Definition at line 43 of file vf_unsharp.c.

Referenced by parse().

#define MAX_MATRIX_SIZE   63

Definition at line 44 of file vf_unsharp.c.

Referenced by parse(), and unsharp().

Function Documentation

static void unsharp ( uint8_t dst,
uint8_t src,
int  dstStride,
int  srcStride,
int  width,
int  height,
FilterParam fp 
)
static

Definition at line 71 of file vf_unsharp.c.

Referenced by avfilter_register_all(), config_props(), filter_frame(), init(), put_image(), and uninit().

static int config ( struct vf_instance *  vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  flags,
unsigned int  outfmt 
)
static

Definition at line 129 of file vf_unsharp.c.

Referenced by vf_open().

static void get_image ( struct vf_instance *  vf,
mp_image_t mpi 
)
static

Definition at line 162 of file vf_unsharp.c.

Referenced by vf_open().

static int put_image ( struct vf_instance *  vf,
mp_image_t mpi,
double  pts 
)
static

Definition at line 181 of file vf_unsharp.c.

Referenced by vf_open().

static void uninit ( struct vf_instance *  vf)
static

Definition at line 207 of file vf_unsharp.c.

Referenced by vf_open().

static int query_format ( struct vf_instance *  vf,
unsigned int  fmt 
)
static

Definition at line 230 of file vf_unsharp.c.

Referenced by vf_open().

static void parse ( FilterParam fp,
char *  args 
)
static

Definition at line 242 of file vf_unsharp.c.

Referenced by vf_open().

static int vf_open ( vf_instance_t vf,
char *  args 
)
static

Definition at line 273 of file vf_unsharp.c.

Variable Documentation

const unsigned int fmt_list[]
static
Initial value:

Definition at line 266 of file vf_unsharp.c.

Referenced by vf_open().

const vf_info_t ff_vf_info_unsharp
Initial value:
= {
"unsharp mask & gaussian blur",
"unsharp",
"Remi Guyomarch",
"",
}

Definition at line 315 of file vf_unsharp.c.