Hi Jerome

On Tue, Mar 11, 2025 at 04:33:11PM +0100, Jerome Martinez wrote:
> Le 11/03/2025 à 15:04, Michael Niedermayer a écrit :
> > Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement jeromes idea of making remap flip optional
> 
> Thanks.
> 
> 
> > -            if (sc->remap > 1U ||
> > -                sc->remap == 1 && !f->flt) {
> > +            if (sc->remap > 2U ||
> > +                sc->remap && !f->flt) {
> >                   av_log(f->avctx, AV_LOG_ERROR, "unsupported remap %d\n", sc->remap);
> >                   return AVERROR_INVALIDDATA;
> >               }
> 
> As the feature is now independent of f->flt, it seems that we can remove the
> "sc->remap && !f->flt" check, it should be supported with integers (actually
> whatever is the value of !f->flt) too.

yes, as soon as someone tests and verifies it works with integers


> 
> 
> > +    { "remap_mode", "Remap Mode", OFFSET(remap_mode), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 2, VE, .unit = "remap_mode" },
> > +        { "auto", "Automatic", 0, AV_OPT_TYPE_CONST,
> > +            { .i64 = -1 }, INT_MIN, INT_MAX, VE, .unit = "remap_mode" },
> > +        { "off", "Disabled", 0, AV_OPT_TYPE_CONST,
> > +            { .i64 =  0 }, INT_MIN, INT_MAX, VE, .unit = "remap_mode" },
> > +        { "dualrle", "Dual RLE", 0, AV_OPT_TYPE_CONST,
> > +            { .i64 =  1 }, INT_MIN, INT_MAX, VE, .unit = "remap_mode" },
> > +        { "flipdualrle", "Dual RLE", 0, AV_OPT_TYPE_CONST,
> > +            { .i64 =  2 }, INT_MIN, INT_MAX, VE, .unit = "remap_mode" },
> 
> Even better to have na option for it.
> LGTM.

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire