hi, At 06:17 AM 02/07/2002, you wrote: >Quoting Alex SONG ([EMAIL PROTECTED]): > > hi, > > > > i am currently working on the DFB savage driver and i would like to see > > how it performs. i am currently running df_layer with an mpeg1 file and i > > changed df_layer to use a YV12 surface in stead of YUY2 to test the savage > > driver overlays. > > > > i am very new to profiling and its techniques and currently i am just > > using top to see how much cpu it uses. when i run df_layer 7 pids show up > > so i assume this is the different threads for everything. i sprinkled some > > printfs over the directfb code and i found out that there is a process for > > main, keyboard events, mouse events, libmpeg3 video, libmpeg3 audio and i > > can't figure out what the other two threads are. i placed printf's at > > every function registered by pthread_create. any ideas any one ? > >libpthread uses one manager thread. The last thread may be the second >mouse device?
yeah i had a closer look and one of the 2 unknown threads were related to the mouse device and the other was related to libmpeg3. from what i know mpeg uses YV12 internally but rendering to a YUY2 surface seems to be faster than rendering to a YV12 surface. has anyone looked into this before ? is it libmpeg3's fault or the libmpeg3 wrapper's fault ? > > also has anyone turned on the profiling flags in gcc with directfb ? does > > it work ? i have not used the profiling features of gcc before. > >I had to link an application statically after compiling directfb with >profiling support. "CFLAGS=-pg ./autogen.sh --enable-static" should work. thanks for that, i will try it out. > > btw, i got YUY2, UYVY and YV12/I420 overlays to work with the DFB savage > > driver. > >Good news, did you look at the "dfb_layers_hook_primary" function. >You can replace the implementation of the primary layer completely >to implement the features of the savage streams. no i didn't know such a function existed and i was having some trouble deciding where to put the primary layer stuff. currently i have put it in aftersetvar but i will look into dfb_layers_hook_primary, it sounds like it's a better solution. my other idea was to put streams code in the kernel driver. thanks for your help. cheers, alex -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
