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

Thomas Guillem thomas at gllm.fr
Wed Jul 1 14:04:21 CEST 2020


On Wed, Jul 1, 2020, at 13:03, Francois Cartegnie wrote:
> 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.

No, we decided to use noinst for mock modules. cf. efb54cb748b4b837c383cce2d29d78dd71891eb9
Quoting Rémi:
    "Test plugins should use noinst_*, IMO. With check_*, you would end up with
    stale plugins and potentially weird crashes due to ABI breaks if alternating
    make all and make check."

> 
> > +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
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list