[FFmpeg-devel] [PATCH] avfilter: implement halve filter

Michael Niedermayer michael at niedermayer.cc
Thu Feb 16 01:06:52 EET 2017


On Tue, Feb 14, 2017 at 08:44:54PM +0100, Daniel Oberhoff wrote:
> filter strictly “halves” the image efficiently, which is often exactly what is needed
> likely much faster than using scale
> fully slice parallelized
> 
> Signed-off-by: Daniel Oberhoff <daniel at danieloberhoff.de>
> ---
>  libavfilter/Makefile     |   1 +
>  libavfilter/allfilters.c |   1 +
>  libavfilter/vf_halve.c   | 367 +++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 369 insertions(+)
>  create mode 100644 libavfilter/vf_halve.c

if you want to improve scaling by a specific factor, be that with
a specialized implementation, threads, SIMD or other that belongs
into libswscale.
libswscale is the component in FFmpeg and avfilter that does that

having many special cases added into libavfilter filters that could be
done equally fast in libswscale is not a good idea.
Also this filter would not be used when scaling by that factor unless
its manually used, which means it would have very few users in practice
while in swscale it would be used automatically if the case and
quality settings match ...

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

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170216/f3c274e6/attachment.sig>


More information about the ffmpeg-devel mailing list