Hello! * Dieter Tschanz <[EMAIL PROTECTED]> [20050427 14:42]: > I am having an application where currently 6 pictures are shown in a preview > with a size of 64x64 pixels. Most of my pics are 5M pixels and the generation > of the preview took too much time. Changing the function > IDirectFBImageProvider_JPEG_RenderTo solved my problem. Maybe some other > users are having similar problems. The change is: > > jpeg_create_decompress(&cinfo); > jpeg_buffer_src(&cinfo, data->buffer); > jpeg_read_header(&cinfo, TRUE); > > cinfo.out_color_space = JCS_RGB; > cinfo.output_components = 3; > > if(cinfo.image_width > rect.w && cinfo.image_height > rect.h) > cinfo.scale_denom = cinfo.image_width / rect.w < cinfo.image_height > / rect.h ? cinfo.image_width / rect.w : cinfo.image_height / rect.h; > > jpeg_start_decompress(&cinfo);
could you please provide this as a unified diff? e.g. the output of "diff -u oldfile.c newfile.c" Greetinx, Count -- Andreas Kotes - The views expressed herein are (only) mine! The only tyrant I accept in this world is the still voice within. -- Mahatma Gandhi (1869-1948) -=- ICQ UIN 3741366 - PGP 0x8F94C228 _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
