Le quartidi 14 thermidor, an CCXXV, Paul B Mahol a écrit :
> Signed-off-by: Paul B Mahol <one...@gmail.com>
> ---
>  doc/filters.texi               |  13 ++
>  libavfilter/Makefile           |   1 +
>  libavfilter/allfilters.c       |   1 +
>  libavfilter/vf_unpremultiply.c | 431 
> +++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 446 insertions(+)
>  create mode 100644 libavfilter/vf_unpremultiply.c

It looks like a copy-paste of vf_premultiply.c with the callback
changed. I think it would be better to use the same code, either two
filters with the same function or just an option "inverse=1" to
premultiply itself.

> +            s->unpremultiply[0] = limited ? unpremultiply8offset : 
> unpremultiply8;
> +            s->unpremultiply[1] = limited ? unpremultiply8offset : 
> unpremultiply8;
> +            s->unpremultiply[2] = limited ? unpremultiply8offset : 
> unpremultiply8;

That can be merged.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to