I think pygame.image.tostring is the answer:
http://www.pygame.org/docs/ref/pygame_image.html
Regards,
Per Wigren
-----Original Message-----
From: Dirk Meyer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Wed, 01 Oct 2003 16:02:20 +0200
Subject: [Freevo-devel] Re: Mplayer bmovl helper
Gustavo Sverzut Barbieri wrote:
> --- Dirk Meyer <[EMAIL PROTECTED]> escreveu: > Gustavo Sverzut Barbieri
> wrote:
>> > How/Why is it slow?
>> >
>> > is the bmovl slow? Is our interface with it? Maybe we can come with
>> a
>> > better solution somewhere...
>>
>> We have to transform the SDL surface into a RGBA32 stream. This is
>> very slow in Python, maybe a C helper with python bindings can do
>> this
>> faster (very sure, because the biggest problems seems to be the
>> memory
>> management).
>
> PyGame doesn't do that in C? Getting a RGBA from SDL is just a matter
> of (int32_t *)mysurface->surface
There is no function to convert a surface into RGBA (at least I found
none). So a made one myself in python and this is really slow.
Dischi
--
Drinking coffee for instant relaxation? That's like drinking alcohol for
instant motor skills.
-- Marc Price
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel