[vlc-devel] [PATCH] Enable/Disable/Auto deinterlace functions for libvlc
remi at remlab.net
Sun Apr 22 09:37:20 CEST 2018
Le samedi 21 avril 2018, 11:40:39 EEST Luís Fernandes a écrit :
> Hi Rémi,
> Thanks for the input.
> Currency, libvlc_video_set_deinterlace() will always select deinterlace 1 or
> 0, but I want to select -1 (Auto) as well. Without changing the function
> signature of libvlc_video_set_deinterlace(), there’s no way to choose
> between, for example: * 1 / blend
> * -1 / linear
> That’s why I’ve split into 2 different functions, so you can specify "-1"
> and then switch the deinterlacer-mode at will. I’ve also left the other one
> intact in order to not break ABI compatibility.
> Can you help me choose what would you like me to implement in order to get
> this feature? 1 - break ABI compatibility and change the method signature
> to libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi, int enabled,
> const char *psz_mode ) 2 - not break ABI compatibility, and in order to
> implement the auto, change the "name" of the filter to be "auto-blend",
> "auto-bob", "auto-.." in order to signal that we want "-1" and not "1" 3 -
> not break ABI compatibility, and create a new function
> libvlc_video_set_deinterlace_filter( libvlc_media_player_t *p_mi, int
> enabled, const char *psz_mode ) but that would mean you would have 2
> functions, one that supports -1 and the other that doesn’t.
IMO, an API clean-up and thus an ABI break is well overdue in general, and
with that, I'd do 1. But that's just my own personal opinion.
More information about the vlc-devel