由于png没有硬件解码,特别是大尺寸的png图片的解码时间比较长,使用浮点优化以后,速度有明显改善。
方法是在libpng和zlib的makefile中的CFLAG 加上-DPNG_FLOATING_POINT_SUPPORTED -mfpu=vfpv3-d16 -mfloat-abi=softfp -O3 -funroll-loops -fomit-frame-pointer -ffast-math
 
另外再修改directfb的idirectfbp_w_picpathprovider_png.c的IDirectFBImageProvider_PNG_RenderTo()函数中添加时间打印
    struct timeval tv;
    float render_start, render_end, decoder_end, decoder_time, render_time;
   
   gettimeofday(&tv, NULL);
   render_start = (float) (tv.tv_sec) + (float) (tv.tv_usec) / 1000000; 
......
gettimeofday(&tv, NULL);
     decoder_end = (float) (tv.tv_sec) + (float) (tv.tv_usec) / 1000000;