[FFmpeg-devel] [PATCH] Support > 8 bit input in yuv2rgb.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Nov 8 00:32:32 CET 2013


On Fri, Nov 08, 2013 at 12:26:55AM +0100, Reimar Döffinger wrote:
> On Thu, Nov 07, 2013 at 10:09:59PM +0100, Michael Niedermayer wrote:
> > On Thu, Nov 07, 2013 at 09:43:07PM +0100, Reimar Döffinger wrote:
> > > Fairly ugly but about 3x faster than the default path (tested on ARM).
> > > 
> > > Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> > > ---
> > >  libswscale/swscale_unscaled.c |   3 +
> > >  libswscale/yuv2rgb.c          | 548 ++++++------------------------------------
> > >  libswscale/yuv2rgb_template.c | 458 +++++++++++++++++++++++++++++++++++
> > >  3 files changed, 536 insertions(+), 473 deletions(-)
> > >  create mode 100644 libswscale/yuv2rgb_template.c
> > 
> > seems to break: -vf format=yuv422p10le,scale,format=rgb0
> > 
> > tested with ffplay & matrixbench
> 
> Ok, now I feel stupid.
> I'll try again, but I actually tested on x86 this time.
> Last time the problem was that the accelerated functions thought they
> could handle it, but they of course only support 8 bit...

Ah, I see it now.
Need to replace the hard-coded c->srcFormat == AV_PIX_FMT_YUV422P
I used a sample where I didn't actually notice that chroma was broken...


More information about the ffmpeg-devel mailing list