On Thu, Jan 09, 2003 at 01:05:06PM -0200, Lalo Martins wrote:
> On Thu, Jan 09, 2003 at 12:36:04PM +0100, Philippe Ney wrote:
> > Hi Micah,
> > 
> > We intend to make video/animation with PicoGUI, did you already thought
> > about this?
> > 
> > What would be the best way to achieve this?
> > Maybe using something like a canvas and the pgFromMemory function with
> > frequent updates?
> > 
> > Maybe you have some tips or suggestions?
> 
> Currently the "standard" answer is to use SDL with the PicoGUI target.
> There is a plan to rip off the PicoGUI support in SDL into a separate
> library, which Micah calls "media_c" (soname would probably be something
> like libpgmedia); this library could be used by non-SDL apps to display
> animation and other graphically complex stuff, such as the vnc viewer of my
> dreams.  But this library is currently vapourware, if you want to start
> implementing it I might be able to lend a hand.
> 
> (Then the SDL PicoGUI target would link to media_c, or at least that is the
> plan.)
> 
> Otherwise the shared memory structures and calls seem to be a bit complex to
> use directly, if you really need to do that for reasons of limited time, my
> suggestion is to use the SDL port as a repository of example code.

The shared memory calls themselves are pretty easy (easier than MIT-SHM at least :)
You call pgMakeSHMBitmap on an existing picogui bitmap handle, and it returns
a structure with info you need to attach to the SHM segment, and a verbose description
of the server's video format. What makes it hard of course is understanding all those
server-side formats.

If you're doing a media player, you probably also want YUV to RGB conversion. If the 
player you're writing/porting can't already do that, SDL can.

> 
> []s,
>                                                |alo
>                                                +----
> --
>             Those who trade freedom for security
>                lose both and deserve neither.
> --
> http://www.laranja.org/                mailto:[EMAIL PROTECTED]
>          pgp key: http://www.laranja.org/pessoal/pgp
> 
> Eu jogo RPG! (I play RPG)         http://www.eujogorpg.com.br/
> GNU: never give up freedom                 http://www.gnu.org/
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel

-- 
Only you can prevent creeping featurism!


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to