[Libav-user] swscale speed

Jan Pohanka xhpohanka at gmail.com
Tue Sep 18 15:12:16 CEST 2012


>> I have tried to write my own simple downscaler (really simple with no
>> antialasing filtering etc.) and it's speed is fine, so I think that  
>> won't be
>> a memory bottleneck
>
> Is its speed faster than any libswscale option?
> -r

Yes, its speed is significantly faster than any settings of libswscale  
that I have tried.
Eg. following scaling should be relatively fast I think...

sctx = sws_getContext(avctx_i->width, avctx_i->height, PIX_FMT_NV12,
             avctx_i->width/2, avctx_i->height/2, PIX_FMT_NV12, SWS_POINT,
             NULL, NULL, NULL);


Jan


More information about the Libav-user mailing list