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"
Include dependency graph for vf_eq2.c:

Go to the source code of this file.

Data Structures

struct  eq2_param_t
 
struct  vf_priv_s
 

Macros

#define LUT16
 

Typedefs

typedef struct eq2_param_t eq2_param_t
 
typedef struct vf_priv_s vf_eq2_t
 

Functions

static void create_lut (eq2_param_t *par)
 
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 ff_vf_info_eq2
 

Macro Definition Documentation

#define LUT16

Definition at line 40 of file vf_eq2.c.

Typedef Documentation

typedef struct eq2_param_t eq2_param_t
typedef struct vf_priv_s vf_eq2_t

Function Documentation

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.

Referenced by vf_open().

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.

Referenced by vf_open().

static int query_format ( vf_instance_t vf,
unsigned  fmt 
)
static

Definition at line 420 of file vf_eq2.c.

Referenced by vf_open().

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.

Referenced by vf_open().

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

Definition at line 449 of file vf_eq2.c.

Variable Documentation

const vf_info_t ff_vf_info_eq2
Initial value:
= {
"Software equalizer",
"eq2",
"Hampa Hug, Daniel Moreno, Richard Felker",
"",
}
NULL
Definition: eval.c:55
static int vf_open(vf_instance_t *vf, char *args)
Definition: vf_eq2.c:449

Definition at line 512 of file vf_eq2.c.