[vlc-devel] [PATCH v2 22/22] opengl: add mock filter

Francois Cartegnie fcvlcdev at free.fr
Wed Jul 1 13:03:18 CEST 2020


Le 01/07/2020 à 12:30, Romain Vimont a écrit :
> This mock filter simplifies testing of the OpenGL filter engine.

Should be in conditionally built with tests target then.

> +vlc_module_begin()
> +    set_shortname("mock")
> +    set_description("mock OpenGL filter")
> +    set_category(CAT_VIDEO)
> +    set_subcategory(SUBCAT_VIDEO_VFILTER)
> +    set_capability("opengl filter", 0)
> +    set_callback(Open)
> +    add_float(MOCK_CFG_PREFIX "angle", 0.f, NULL, NULL, false)
> +    add_float(MOCK_CFG_PREFIX "speed", 0.f, NULL, NULL, false) /* in rotation per minute */
> +    add_bool(MOCK_CFG_PREFIX "mask", false, NULL, NULL, false)
> +vlc_module_end()
> 


-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list