[maemo-developers] Can GTK+ make use of XSHM extension from MIT
From: Gustavo Sverzut Barbieri barbieri at gmail.comDate: Sun Jan 13 23:26:10 EET 2008
- Previous message: Can GTK+ make use of XSHM extension from MIT
- Next message: [LONG] New user/devel and newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jan 12, 2008 8:08 AM, Ross Burton <ross at burtonini.com> wrote: > On Sat, 2008-01-12 at 09:51 +0800, Bin Chen wrote: > > OK, from the thread above I have point out the main purpose of me to > > start this thread is I want to write a video player in a slow machine, > > I have tested the X and framebuffer case that the difference is large, > > so I am going to find the root cause so I can make the two results > > closer. > > As has been said, have a look at the Xvideo extension which is designed > explicitly for video playback. Yes, I'll second Ross and others here: try XV extension. Probably you'll have your video frames not in RGB, but in some other, more convenient color space like YUV, in that case if you don't use XV you have to YUV->RGB on your app, BUT if you use XV then you can request this extension to use hardware converter for you, this means you'll have 2 benefits: 1) not use CPU to convert and 2) use less bandwidth as YUV is usually lighter than RGB (less bits per pixel). If you're using Maemo, then you'll also face the problem with the huge screen resolution, I'd recommend you to use double pixel features. In the toolkit area, I'd made my marketing on EFL (Enlightenment Foundation Libraries), that I ported and optimized to Maemo. It has a special engine for 16bpp using XSHM. It automatically handles some drawing optimizations, like eliminating overlapping dirty rectangles (breaking then in non-overlapping, drawing less)... Well, I had to do this marketing, but maybe for the video window it will not help at all. BTW, did you consider using Gstreamer or MPayer for this task? They all have optimized means to output video. -- Gustavo Sverzut Barbieri -------------------------------------- Jabber: barbieri at gmail.com MSN: barbieri at gmail.com ICQ#: 17249123 Skype: gsbarbieri Mobile: +55 (81) 9927 0010
- Previous message: Can GTK+ make use of XSHM extension from MIT
- Next message: [LONG] New user/devel and newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]