Hi.

I measured the performance of picture format conversion (no scaling)
on my P2.4GHz and got the following results:

Dest. pixel format - YUV420P

img_convert(): 
  YUV422P   - 4.5 sec ~ 2200 fps
  YUVJ420P  - 6.5 sec ~ 1500 fps
  YUVJ422P  - 10  sec ~ 1000 fps
  YUYV422   - 4.3 sec ~ 2300 fps

swscale() do not optimize (lgpl)
  YUV422P  - 96 sec   ~  104 fps
  YUVJ420P - 53 sec   ~  188 fps
  YUVJ422P - 110 sec  ~   90 fps
  YUYV422  - 7.3 sec  ~ 1360 fps

swscale() --enable-gpl
  YUV422P  - 30 sec   ~  330 fps
  YUVJ420P - 26 sec   ~  380 fps
  YUVJ422P - 42 sec   ~  230 fps
  YUYV422  - 1.82 s   ~ 5500 fps

Conclusions: JPEG's colorspace YUVJ42{0,2}P -> YUV420P and YUYV422 -> YUV420P
format conversion by sws_scale() even with the MMX/SSE optimization - is very 
very slow
instead old removed img_convert() function.

Is it time to regain img_convert() (without scaler) function in the code?

-- 
        Andrey Nikitin

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to