|Site sponsored by IGEL|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[directfb-users] Pixel format conversion and Different pixel formats for windows
It seems to me that a RGB16 image cannot be rendered to a YUY2 surface. Looking at rgba_to_dst_format(), I found the conversion from RGBA to YUY2 not implemented. But there are macros at src/gfx/convert.h converting RGB to YUV (Y/CB/CR_FROM_RGB). Why is it not implemented? Is it because of the calculations required rather than the simple bit-shifts among RGBs?
Another problem is that I cannot play a video on a YUY2 window surface, which is, in turn, on an ARGB layer. The error message is "only copying blits supported for YUV in software" at generic.c line 3311. I guess there should be no problem playing the video to a YUY2 surface. There should be no conversion required and the performance should be better. Since that surface is on an ARGB layer, is it also not implemented to blit the YUY2 surface on an ARGB layer? Strange enough, I have no problem playing the video to an ARGB window surface on an ARGB layer.
When playing back an mpeg-1 file using libmpeg3, I find 3 threads running, two of which takes up 50% and 40% of the cpu time on my epia-m C3 1G system. Is such huge cpu usage due to pixel format conversions? Or is it due to the mpeg decoding? How can I tell?
Thanks in advance!
Info: To unsubscribe send a mail to firstname.lastname@example.org with "unsubscribe directfb-users" as subject.