The problem perhaps is not calculation of step for soft AE lost of time is happened during calculation of average. Because the calculation of step is run 1,2,3..500 times but this number of run is limited. Until average is calculate each frame, and calculation is not too small or simple. As improvement of speed for soft AE is using 8bit variable for yavg new_exp. Also move on first the check of value dev->vsettings.exposure for near to overflow, in this case (directly point to the lamp) the function finish imediately, no chance for corection, or (in dark room) situation is same. Check again performance in user space, as I do in last example for contrast.
Stefan Krastanov wrote: > Here is the patch. The difference is that now soft-AE checks if we are > already at maximal/minimal exposure and exits if that's the case. > There are some hardcoded values for what I call maximal/minimal > exposure that are working for me, and I hope they will not cause any > problem, but I'll be grateful if someone from the developers inspect > the changes as they are only 10 lines of code. > > And I must note - soft-AE is still called - it's just exiting faster > if there is nothing useful to do - as I have no idea who is the caller > I may be missing some potential speedup. > > Regards > Stefan > > 2009/3/28 Stefan Krastanov <[email protected] > <mailto:[email protected]>> > > I made some test on the soft-AE and it seems it may be part of the > problem. > ------------------- --~--~---------~--~----~------------~-------~--~----~ Lets make microdia webcams plug'n play, (currently plug'n pray) To post to this group, send email to [email protected] Visit us online https://groups.google.com/group/microdia -~----------~----~----~----~------~----~------~--~---
