I having difficulties passing arguments to a video filter module and read them successfully. This is the module descriptor:
Code: Select all
vlc_module_begin ()
set_description( N_("viva video filter") )
set_shortname( N_("viva" ))
set_category( CAT_VIDEO )
set_subcategory( SUBCAT_VIDEO_VFILTER )
set_capability( "video filter", 0 )
add_integer(FILTER_PREFIX "Wvp",640,P1_TEXT, P1_LONGTEXT,false)
add_integer(FILTER_PREFIX "Hvp",380,P2_TEXT, P2_LONGTEXT,false)
add_integer(FILTER_PREFIX "Fh",90,P3_TEXT, P3_LONGTEXT,false)
add_integer(FILTER_PREFIX "Fv",50,P4_TEXT, P4_LONGTEXT,false)
add_integer(FILTER_PREFIX "delay",5,P5_TEXT, P5_LONGTEXT,false)
add_shortcut( "viva" )
set_callbacks( Create, Destroy )
vlc_module_end ()
Code: Select all
a1 = var_CreateGetIntegerCommand(p_filter,FILTER_PREFIX "Wvp");
a2 = var_CreateGetIntegerCommand(p_filter,FILTER_PREFIX "Hvp");
a3 = var_CreateGetIntegerCommand(p_filter,FILTER_PREFIX "Fh");
a4 = var_CreateGetIntegerCommand(p_filter,FILTER_PREFIX "Fv");
a5 = var_CreateGetIntegerCommand(p_filter,FILTER_PREFIX "delay");
Thank you