libavfilter/libmpcodecs/vf_eq2.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <inttypes.h>
#include "config.h"
#include "mp_msg.h"
#include "cpudetect.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"

Go to the source code of this file.

Data Structures

struct  eq2_param_t
struct  vf_priv_s

Defines

#define LUT16

Typedefs

typedef struct vf_priv_s vf_eq2_t

Functions

static void create_lut (eq2_param_t *par)
static void affine_1d_MMX (eq2_param_t *par, unsigned char *dst, unsigned char *src, unsigned w, unsigned h, unsigned dstride, unsigned sstride)
static void apply_lut (eq2_param_t *par, unsigned char *dst, unsigned char *src, unsigned w, unsigned h, unsigned dstride, unsigned sstride)
static int put_image (vf_instance_t *vf, mp_image_t *src, double pts)
static void check_values (eq2_param_t *par)
static void print_values (vf_eq2_t *eq2)
static void set_contrast (vf_eq2_t *eq2, double c)
static void set_brightness (vf_eq2_t *eq2, double b)
static void set_gamma (vf_eq2_t *eq2, double g)
static void set_saturation (vf_eq2_t *eq2, double s)
static int control (vf_instance_t *vf, int request, void *data)
static int query_format (vf_instance_t *vf, unsigned fmt)
static void uninit (vf_instance_t *vf)
static int vf_open (vf_instance_t *vf, char *args)

Variables

const vf_info_t vf_info_eq2


Define Documentation

#define LUT16

Definition at line 40 of file vf_eq2.c.


Typedef Documentation

typedef struct vf_priv_s vf_eq2_t


Function Documentation

static void affine_1d_MMX ( eq2_param_t par,
unsigned char *  dst,
unsigned char *  src,
unsigned  w,
unsigned  h,
unsigned  dstride,
unsigned  sstride 
) [static]

Definition at line 125 of file vf_eq2.c.

Referenced by check_values().

static void apply_lut ( eq2_param_t par,
unsigned char *  dst,
unsigned char *  src,
unsigned  w,
unsigned  h,
unsigned  dstride,
unsigned  sstride 
) [static]

Definition at line 192 of file vf_eq2.c.

Referenced by check_values().

static void check_values ( eq2_param_t par  )  [static]

Definition at line 285 of file vf_eq2.c.

Referenced by set_brightness(), set_contrast(), set_gamma(), and set_saturation().

static int control ( vf_instance_t vf,
int  request,
void *  data 
) [static]

Definition at line 369 of file vf_eq2.c.

static void create_lut ( eq2_param_t par  )  [static]

Definition at line 79 of file vf_eq2.c.

Referenced by apply_lut().

static void print_values ( vf_eq2_t eq2  )  [static]

Definition at line 303 of file vf_eq2.c.

Referenced by set_brightness(), set_contrast(), set_gamma(), and set_saturation().

static int put_image ( vf_instance_t vf,
mp_image_t src,
double  pts 
) [static]

Definition at line 241 of file vf_eq2.c.

static int query_format ( vf_instance_t vf,
unsigned  fmt 
) [static]

Definition at line 420 of file vf_eq2.c.

static void set_brightness ( vf_eq2_t eq2,
double  b 
) [static]

Definition at line 321 of file vf_eq2.c.

Referenced by control(), and vf_open().

static void set_contrast ( vf_eq2_t eq2,
double  c 
) [static]

Definition at line 311 of file vf_eq2.c.

Referenced by control(), and vf_open().

static void set_gamma ( vf_eq2_t eq2,
double  g 
) [static]

Definition at line 331 of file vf_eq2.c.

Referenced by control(), and vf_open().

static void set_saturation ( vf_eq2_t eq2,
double  s 
) [static]

Definition at line 352 of file vf_eq2.c.

Referenced by control(), and vf_open().

static void uninit ( vf_instance_t vf  )  [static]

Definition at line 440 of file vf_eq2.c.

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

Definition at line 449 of file vf_eq2.c.


Variable Documentation

Initial value:

 {
  "Software equalizer",
  "eq2",
  "Hampa Hug, Daniel Moreno, Richard Felker",
  "",
  &vf_open,
  NULL
}

Definition at line 512 of file vf_eq2.c.


Generated on Fri Oct 26 02:48:01 2012 for FFmpeg by  doxygen 1.5.8