xine-lib 1.2.13-20230125hg15249
Data Structures | Typedefs | Functions
eq2.c File Reference
#include "planar.h"
#include <xine/xine_internal.h>
#include <xine/post.h>
#include <xine/xineutils.h>
#include <math.h>
#include <pthread.h>

Data Structures

struct  eq2_param_t
 
struct  vf_priv_s
 
struct  eq2_parameters_s
 

Typedefs

typedef struct eq2_param_t eq2_param_t
 
typedef struct vf_priv_s vf_eq2_t
 
typedef struct post_plugin_eq2_s post_plugin_eq2_t
 
typedef struct eq2_parameters_s eq2_parameters_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 void check_values (eq2_param_t *par)
 
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)
 
 PARAM_ITEM (PARAM_ITEM(POST_PARAM_TYPE_DOUBLE, gamma, PARAM_ITEM(NULL, PARAM_ITEM(0, PARAM_ITEM(5, PARAM_ITEM(0, "gamma")
 
static int set_parameters (xine_post_t *this_gen, const void *param_gen)
 
static int get_parameters (xine_post_t *this_gen, void *param_gen)
 
static xine_post_api_descr_tget_param_descr (void)
 
static char * get_help (void)
 
static void eq2_dispose (post_plugin_t *this_gen)
 
static int eq2_get_property (xine_video_port_t *port_gen, int property)
 
static int eq2_set_property (xine_video_port_t *port_gen, int property, int value)
 
static int eq2_intercept_frame (post_video_port_t *port, vo_frame_t *frame)
 
static int eq2_draw (vo_frame_t *frame, xine_stream_t *stream)
 
static post_plugin_teq2_open_plugin (post_class_t *class_gen, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target)
 
void * eq2_init_plugin (xine_t *xine, const void *data)
 

Typedef Documentation

◆ eq2_param_t

typedef struct eq2_param_t eq2_param_t

◆ eq2_parameters_t

◆ post_plugin_eq2_t

typedef struct post_plugin_eq2_s post_plugin_eq2_t

◆ vf_eq2_t

typedef struct vf_priv_s vf_eq2_t

Function Documentation

◆ apply_lut()

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

◆ check_values()

static void check_values ( eq2_param_t * par)
static

◆ create_lut()

static void create_lut ( eq2_param_t * par)
static

◆ eq2_dispose()

static void eq2_dispose ( post_plugin_t * this_gen)
static

References _x_post_dispose().

Referenced by eq2_open_plugin().

◆ eq2_draw()

static int eq2_draw ( vo_frame_t * frame,
xine_stream_t * stream )
static

◆ eq2_get_property()

static int eq2_get_property ( xine_video_port_t * port_gen,
int property )
static

◆ eq2_init_plugin()

void * eq2_init_plugin ( xine_t * xine,
const void * data )

◆ eq2_intercept_frame()

static int eq2_intercept_frame ( post_video_port_t * port,
vo_frame_t * frame )
static

◆ eq2_open_plugin()

static post_plugin_t * eq2_open_plugin ( post_class_t * class_gen,
int inputs,
xine_audio_port_t ** audio_target,
xine_video_port_t ** video_target )
static

◆ eq2_set_property()

static int eq2_set_property ( xine_video_port_t * port_gen,
int property,
int value )
static

◆ get_help()

static char * get_help ( void )
static

References _.

Referenced by eq2_open_plugin().

◆ get_param_descr()

static xine_post_api_descr_t * get_param_descr ( void )
static

Referenced by eq2_open_plugin().

◆ get_parameters()

static int get_parameters ( xine_post_t * this_gen,
void * param_gen )
static

Referenced by eq2_open_plugin().

◆ PARAM_ITEM()

PARAM_ITEM ( PARAM_ITEM( POST_PARAM_TYPE_DOUBLE,
gamma ,
PARAM_ITEM( NULL,
PARAM_ITEM( 0,
PARAM_ITEM( 5,
PARAM_ITEM( 0,
"gamma"  )

◆ set_brightness()

static void set_brightness ( vf_eq2_t * eq2,
double b )
static

◆ set_contrast()

static void set_contrast ( vf_eq2_t * eq2,
double c )
static

◆ set_gamma()

static void set_gamma ( vf_eq2_t * eq2,
double g )
static

◆ set_parameters()

static int set_parameters ( xine_post_t * this_gen,
const void * param_gen )
static

◆ set_saturation()

static void set_saturation ( vf_eq2_t * eq2,
double s )
static