libavfilter/libmpcodecs/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

Defines

#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 vf_info_unsharp


Define Documentation

#define MAX_MATRIX_SIZE   63

Definition at line 44 of file vf_unsharp.c.

Referenced by parse(), and unsharp().

#define MIN_MATRIX_SIZE   3

Definition at line 43 of file vf_unsharp.c.

Referenced by parse().


Function Documentation

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.

static void get_image ( struct vf_instance vf,
mp_image_t mpi 
) [static]

Definition at line 162 of file vf_unsharp.c.

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

Definition at line 242 of file vf_unsharp.c.

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

Definition at line 181 of file vf_unsharp.c.

static int query_format ( struct vf_instance vf,
unsigned int  fmt 
) [static]

Definition at line 230 of file vf_unsharp.c.

static void uninit ( struct vf_instance vf  )  [static]

Definition at line 207 of file vf_unsharp.c.

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(), end_frame(), init(), put_image(), and uninit().

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.

Initial value:

 {
    "unsharp mask & gaussian blur",
    "unsharp",
    "Remi Guyomarch",
    "",
    vf_open,
    NULL
}

Definition at line 315 of file vf_unsharp.c.


Generated on Fri Oct 26 02:50:10 2012 for FFmpeg by  doxygen 1.5.8