#include <errno.h>
#include <math.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
+#include <vlc_plugin.h>
#include <vlc_sout.h>
#include <vlc_vout.h>
set_capability( "video filter2", 0 );
add_float_with_range( "contrast", 1.0, 0.0, 2.0, NULL,
- CONT_TEXT, CONT_LONGTEXT, VLC_FALSE );
- change_safe();
+ CONT_TEXT, CONT_LONGTEXT, false );
add_float_with_range( "brightness", 1.0, 0.0, 2.0, NULL,
- LUM_TEXT, LUM_LONGTEXT, VLC_FALSE );
- change_safe();
+ LUM_TEXT, LUM_LONGTEXT, false );
add_integer_with_range( "hue", 0, 0, 360, NULL,
- HUE_TEXT, HUE_LONGTEXT, VLC_FALSE );
- change_safe();
+ HUE_TEXT, HUE_LONGTEXT, false );
add_float_with_range( "saturation", 1.0, 0.0, 3.0, NULL,
- SAT_TEXT, SAT_LONGTEXT, VLC_FALSE );
- change_safe();
+ SAT_TEXT, SAT_LONGTEXT, false );
add_float_with_range( "gamma", 1.0, 0.01, 10.0, NULL,
- GAMMA_TEXT, GAMMA_LONGTEXT, VLC_FALSE );
- change_safe();
+ GAMMA_TEXT, GAMMA_LONGTEXT, false );
add_bool( "brightness-threshold", 0, NULL,
- THRES_TEXT, THRES_LONGTEXT, VLC_FALSE );
- change_safe();
+ THRES_TEXT, THRES_LONGTEXT, false );
add_shortcut( "adjust" );
set_callbacks( Create, Destroy );
int i_hue;
double f_saturation;
double f_gamma;
- vlc_bool_t b_brightness_threshold;
+ bool b_brightness_threshold;
};
/*****************************************************************************
uint8_t *p_in, *p_in_v, *p_in_end, *p_line_end;
uint8_t *p_out, *p_out_v;
- vlc_bool_t b_thres;
+ bool b_thres;
double f_hue;
double f_gamma;
int32_t i_cont, i_lum;
/*
* Threshold mode drops out everything about luma, contrast and gamma.
*/
- if( b_thres != VLC_TRUE )
+ if( b_thres != true )
{
/* Contrast is a fast but kludged function, so I put this gap to be
int i_lines, i_visible_lines, i_pitch, i_visible_pitch;
- vlc_bool_t b_thres;
+ bool b_thres;
double f_hue;
double f_gamma;
int32_t i_cont, i_lum;
/*
* Threshold mode drops out everything about luma, contrast and gamma.
*/
- if( b_thres != VLC_TRUE )
+ if( b_thres != true )
{
/* Contrast is a fast but kludged function, so I put this gap to be
vlc_value_t oldval, vlc_value_t newval,
void *p_data )
{
+ VLC_UNUSED(p_this); VLC_UNUSED(oldval);
filter_sys_t *p_sys = (filter_sys_t *)p_data;
if( !strcmp( psz_var, "contrast" ) )