On Sunday, February 16, 2014, Diego Biurrun <[email protected]> wrote:
> On Sat, Feb 15, 2014 at 06:40:57PM +0100, Vittorio Giovara wrote:
> > --- a/libavfilter/vf_interlace.c
> > +++ b/libavfilter/vf_interlace.c
> > @@ -44,7 +44,9 @@ enum FieldType {
> > typedef struct {
> > const AVClass *class;
> > enum ScanMode scan; // top or bottom field first scanning
> > +#if LIBAVFILTER_VERSION_MAJOR < 5
> > int lowpass; // enable or disable low pass filterning
> > +#endif
> > AVFrame *cur, *next; // the two frames from which the new one is
> obtained
>
> No, this is not how deprecation should be done. Instead, add a new
> FF_API_FOO definition to libavfilter/version.h and test for that.
>
The deprecation here is slightly different than usual, this is all
contained in a single file, so no need to taint the headers, no?
> @@ -58,8 +60,10 @@ static const AVOption options[] = {
> > AV_OPT_TYPE_CONST, {.i64 = MODE_TFF }, INT_MIN, INT_MAX, .flags
> = V, .unit = "scan" },
> > { "bff", "bottom field first", 0,
> > AV_OPT_TYPE_CONST, {.i64 = MODE_BFF }, INT_MIN, INT_MAX, .flags
> = V, .unit = "scan" },
> > - { "lowpass", "enable vertical low-pass filter", OFFSET(lowpass),
> > +#if LIBAVFILTER_VERSION_MAJOR < 5
> > + { "lowpass", "(deprecated, the filter is always set)",
> OFFSET(lowpass),
>
> The filter cannot be set, do you mean option?
No I mean filter, low pass filter. Option works too, so I'll change that to
avoid confusion.
>
> Diego
> _______________________________________________
> libav-devel mailing list
> [email protected] <javascript:;>
> https://lists.libav.org/mailman/listinfo/libav-devel
>
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel