[FFmpeg-devel] [PATCH] lavfi/scale: add scale opencl filter

Michael Niedermayer michaelni at gmx.at
Thu Jun 20 14:55:04 CEST 2013


On Thu, Jun 20, 2013 at 09:58:55AM +0800, Wei Gao wrote:
> 2013/6/8 Michael Niedermayer <michaelni at gmx.at>
> 
> > On Wed, May 29, 2013 at 04:55:47PM +0800, Wei Gao wrote:
> >
> > >
> >
> >
> >
> > >  libavfilter/opencl_allkernels.c  |    2
> >
> > >  libavfilter/vf_scale.c           |   30 +-
> >
> > >  libswscale/Makefile              |    2
> >
> > >  libswscale/scale_opencl_kernel.h |  531
> > +++++++++++++++++++++++++++++++++++++++
> >
> > >  libswscale/swscale_internal.h    |   32 ++
> >
> > >  libswscale/swscale_opencl.c      |  328 ++++++++++++++++++++++++
> >
> > >  libswscale/swscale_opencl.h      |   43 +++
> >
> > >  7 files changed, 964 insertions(+), 4 deletions(-)
> >
> > > bf60e224a4cfa8167ce952f940670013c025d4ee
> >  0001-lavfi-scale-add-scale-opencl-filter.patch
> >
> > > From cbe06e650a42b3e4bf9abe2226b9c61602d12617 Mon Sep 17 00:00:00 2001
> >
> > > From: highgod0401 <highgod0401 at gmail.com>
> >
> > > Date: Wed, 29 May 2013 16:53:32 +0800
> >
> > > Subject: [PATCH] lavfi/scale: add scale opencl filter
> >
> >
> >
> > why does adding opencl support to swscale need changes to
> >
> > libavfilter ?
> >
> >
> >
> > Also can you post benchmark results?
> >
> > how much speed is gained by this and is there a quality difference
> >
> > to the software based swscale
> >
> > Hi,
> Sorry for the late reply, we are so busy these days.
> Our benchmark is as follows, and we found that ourout put is the same as
> the C code but differrent from the asm output, the attachment is the
> benchmark for C code, ASM, and OpenCL, including the md5 code

"scale=740:480:flags=sinc"
noone uses sinc, its also subjectively worse quality than the other
scalers
Benchmarks are needed for actual real world use cases

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130620/bfaf2d1b/attachment.asc>


More information about the ffmpeg-devel mailing list