Re: DirectFB

H}kan Hjort <[email protected]>
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Tue Jul 02 2002, Julian Scheel wrote:
> Hi,
> 
> how it is with DirectFB support?

Don't have any.

> I don't worked yet with DirectFB, but it seems to be very fast and 
> feature-rich.
You should probably look into if there are any advanges to this before
time is expended on writing code for it.
 
> Are there any plans to support it?

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.  

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.

> For now only XV and normal X11 are supported for output, aren't they?
> 
Yes and a hack to output directly to the frame buffer of Creator3D cards.

> I would love to see Ogle under DirectFB.
> 
Nothing says that like code ;-)

-- 
Håkan Hjort
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.