Speed up bitmap getting

DLL Edition of the F-IN-BOX
Zeratul
Posts: 24
Joined: Sat Apr 01, 2006 8:19 am

Speed up bitmap getting

Postby Zeratul » Sun Apr 02, 2006 1:30 pm

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 ?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: Speed up bitmap getting

Postby Softanics » Sun Apr 02, 2006 5:47 pm

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.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

Zeratul
Posts: 24
Joined: Sat Apr 01, 2006 8:19 am

Postby Zeratul » Sun Apr 02, 2006 5:55 pm

Will I get direct access to flash image bytes? So bitmap getting stage will be fully skipped ?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sun Apr 02, 2006 6:21 pm

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.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

Zeratul
Posts: 24
Joined: Sat Apr 01, 2006 8:19 am

Postby Zeratul » Sun Apr 02, 2006 6:34 pm

Yes. This will be very usefull and interesting. How soon will you implement callback function for bitmap getting ?
Last edited by Zeratul on Sun Apr 02, 2006 6:37 pm, edited 1 time in total.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sun Apr 02, 2006 6:37 pm

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
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

Zeratul
Posts: 24
Joined: Sat Apr 01, 2006 8:19 am

Postby Zeratul » Sun Apr 02, 2006 6:39 pm

Ok. I will wait for callback function. If then all will work normal, we will order a copy.

Zeratul
Posts: 24
Joined: Sat Apr 01, 2006 8:19 am

Postby Zeratul » Sun Apr 02, 2006 7:06 pm

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.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Mon Apr 03, 2006 6:54 am

My mistake. I'm sorry. We can't provide a buffer _with alpha channel_ without slowing the speed.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

Zeratul
Posts: 24
Joined: Sat Apr 01, 2006 8:19 am

Postby Zeratul » Mon Apr 03, 2006 7:22 am

So you mean it is impossible to speed up in any case?
Or It is still possible with source code ?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Mon Apr 03, 2006 7:27 am

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.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

Zeratul
Posts: 24
Joined: Sat Apr 01, 2006 8:19 am

Postby Zeratul » Mon Apr 03, 2006 7:57 am

What about windows transparency ? Are they working in the same way ?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Mon Apr 03, 2006 8:27 am

Zeratul wrote:What about windows transparency ? Are they working in the same way ?


Yes. Every time we build semitransparent bitmap and use UpdateLayeredWindow.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

Zeratul
Posts: 24
Joined: Sat Apr 01, 2006 8:19 am

Postby Zeratul » Mon Apr 03, 2006 8:30 am

Is it possible to change sources, for drawing without a window ? Maybe directly onto the bitmap.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Mon Apr 03, 2006 8:38 am

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.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 14 guests

cron