Page 1 of 3

Speed up bitmap getting

Posted: Sun Apr 02, 2006 1:30 pm
by Zeratul
How can I speed up bitmap getting?
I was trying to play with quality, but it was too slow in any case.
It is not enough fast for using it in games.

Normally, flash movie playing fast. But If through this control, it is too slow. Is it possible to speed up bitmap getting of current frame?
Or what other properties are responsible for speed ?
Or can you give another example of extracting current frame from flash window ?

Re: Speed up bitmap getting

Posted: Sun Apr 02, 2006 5:47 pm
by Softanics
Zeratul wrote:Normally, flash movie playing fast. But If through this control, it is too slow.


It's related with getting of bitmaps.

Zeratul wrote:Is it possible to speed up bitmap getting of current frame?
Or what other properties are responsible for speed ?
Or can you give another example of extracting current frame from flash window ?


Currently it's impossible. We are planning to add callback, which is calling to get a pixels when a frame is painted. But if you have source code, you can already get pixels without speed slowing.

Posted: Sun Apr 02, 2006 5:55 pm
by Zeratul
Will I get direct access to flash image bytes? So bitmap getting stage will be fully skipped ?

Posted: Sun Apr 02, 2006 6:21 pm
by Softanics
Zeratul wrote:Will I get direct access to flash image bytes? So bitmap getting stage will be fully skipped ?


Yes. I can prepare example in the nearest days.

Posted: Sun Apr 02, 2006 6:34 pm
by Zeratul
Yes. This will be very usefull and interesting. How soon will you implement callback function for bitmap getting ?

Posted: Sun Apr 02, 2006 6:37 pm
by Softanics
Zeratul wrote:Yes. This will be very usefull and interesting. How soon you will implement callback function for bitmap getting ?


Next week, I hope.

Zeratul wrote:What about prices? How much will cost library with source code ?


Please see here:
http://www.flashplayercontrol.com/dll/order.html

Posted: Sun Apr 02, 2006 6:39 pm
by Zeratul
Ok. I will wait for callback function. If then all will work normal, we will order a copy.

Posted: Sun Apr 02, 2006 7:06 pm
by Zeratul
Also, It will be very good, If you provide a function, that will return pointer
to the pixels data of the last, fully rendered frame.

Posted: Mon Apr 03, 2006 6:54 am
by Softanics
My mistake. I'm sorry. We can't provide a buffer _with alpha channel_ without slowing the speed.

Posted: Mon Apr 03, 2006 7:22 am
by Zeratul
So you mean it is impossible to speed up in any case?
Or It is still possible with source code ?

Posted: Mon Apr 03, 2006 7:27 am
by Softanics
Zeratul wrote:So you mean it is impossible to speed up in any case?


Yes. The problem is to get a bitmap with alpha channel, we need to paint a flash movie twice. And then calculate alpha component of the color. The problem is to do it quickly.

Posted: Mon Apr 03, 2006 7:57 am
by Zeratul
What about windows transparency ? Are they working in the same way ?

Posted: Mon Apr 03, 2006 8:27 am
by Softanics
Zeratul wrote:What about windows transparency ? Are they working in the same way ?


Yes. Every time we build semitransparent bitmap and use UpdateLayeredWindow.

Posted: Mon Apr 03, 2006 8:30 am
by Zeratul
Is it possible to change sources, for drawing without a window ? Maybe directly onto the bitmap.

Posted: Mon Apr 03, 2006 8:38 am
by Softanics
Zeratul wrote:Is it possible to change sources, for drawing without a window ? Maybe directly onto the bitmap.


You can create a hidden window and periodically get a frame bitmap with alpha channel.