Re: DirectFB
Julian Scheel <[email protected]>
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Freitag, 12. Juli 2002 22:28 schrieb H}kan Hjort: > Don't have any. don't expected that (c; > You should probably look into if there are any advanges to this before > time is expended on writing code for it. At the moment I'm very busy. (Writing a book about the dark-side of PCs (c; ) But when I finished that, probable in begining of august, I'll look at DirectFB. If it is as good as I think I'll play a bit around with it. If it's good I am the man who tries to implement Ogle for DirectFB (c: Discolure Agreement (c; : This means not that I manage to get it work, but it should be possible. mplayer supports DirectFB yet. > Not curently. Should not be to hard though. It's just a matter of > implementing the functions that mpeg2_video/video_output.c uses. > More specificaly: > > /* Should allocate and set up everyting. */ > void display_init(int padded_width, int padded_height, > int picture_buffer_shmid, > char *picture_buffer_addr); > /* Called when the input resolution/size is about to change, > * display_init() will be called again after this. */ > void display_reset(void); > /* Display one image. */ > void display(yuv_image_t *current_image); > /* Poll for input / redraw events. For now the code to do screen shoots > * and pass on the events to the input client is located here too (should > * be changed). */ > void display_poll(yuv_image_t *current_image); > /* Called upon program termination. */ > void display_exit(void); > > Some very small tweek of mpeg2_video/video_output.c might be needed too. Well, thanks for that info. Perhaps they'll help me next month! > When we have more output modes I guess some code to select and try > different ones would be in order too. That is not the case right > now though, so one would have to select at build time or make two > binaries and select at startup to begin with. I would do it like mplayer does. Make an additional Parameter and use the particular function. > Yes and a hack to output directly to the frame buffer of Creator3D cards. > > Nothing says that like code ;-) We'll see (c; -- Grüße, Julian