SwScaler performance help (was Re: [MPlayer-dev-eng] [PATCH] vf_osd updates - fully baked?)

Rich Felker dalias at aerifal.cx
Tue Sep 13 15:56:24 CEST 2005


On Tue, Sep 13, 2005 at 10:47:30AM +0200, Reimar Döffinger wrote:
> Hi,
> On Mon, Sep 12, 2005 at 10:34:58PM -0400, Jason Tackaberry wrote:
> >     sws_getFlagsAndFilterFromCmdLine(&sws_flags, &srcFilterParam,
> > &dstFilterParam);
> 
> Btw. this function isn't in any header, so don't use it in the final
> version (use sws_getContextFromCmdLine), though I'm not sure if you
> really want to respect the -sws command line option.
> 
> >     priv->sws_bgr32 = sws_getContext(priv->w, priv->h, IMGFMT_BGR32, width, height, IMGFMT_YV12,
> >                                        get_sws_cpuflags() | sws_flags | SWS_PRINT_INFO,
> >                                        srcFilterParam, dstFilterParam, NULL);
> 
> >         SwScaler: using unscaled Planar YV12 -> Planar YV12 special converter
> >         
> >         SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
> 
> I wonder where these come from?
> 
> >         SwScaler: BICUBIC scaler, from BGRA to Planar YV12 using MMX2
> 
> Why does it get scaled? And BICUBIC is probably overkill, see -sws
> option.

Because 4:4:4 != 4:2:0.

Rich




More information about the MPlayer-dev-eng mailing list