#include <math.h>
#include <vlc/vlc.h>
-#include <vlc/sout.h>
-#include <vlc/decoder.h>
+#include <vlc_sout.h>
+#include <vlc_vout.h>
#include "vlc_filter.h"
vlc_module_begin();
set_description( _("Image properties filter") );
- set_shortname( N_("Image adjust" ));
+ set_shortname( _("Image adjust" ));
set_category( CAT_VIDEO );
- set_subcategory( SUBCAT_VIDEO_VFILTER2 );
+ set_subcategory( SUBCAT_VIDEO_VFILTER );
set_capability( "video filter2", 0 );
add_float_with_range( "contrast", 1.0, 0.0, 2.0, NULL,
/* needed to get options passed in transcode using the
* adjust{name=value} syntax */
- sout_CfgParse( p_filter, "", ppsz_filter_options,
+ config_ChainParse( p_filter, "", ppsz_filter_options,
p_filter->p_cfg );
var_Create( p_filter, "contrast",
p_outpic->b_progressive = p_pic->b_progressive;
p_outpic->b_top_field_first = p_pic->b_top_field_first;
- p_pic->pf_release( p_pic );
+ if( p_pic->pf_release )
+ p_pic->pf_release( p_pic );
return p_outpic;
}