]> granicus.if.org Git - handbrake/commit
libhb: Minor nlmeans optimizations.
authorbradleys <bradley@bradleysepos.com>
Fri, 6 Feb 2015 11:05:33 +0000 (11:05 +0000)
committerbradleys <bradley@bradleysepos.com>
Fri, 6 Feb 2015 11:05:33 +0000 (11:05 +0000)
commit487ea244e6ebe777773712d5763870f688a2e804
treeb902d8da09da66904dc56a36f44c2ae74a7adf01
parent1141a5f323d6ce712881a2de311b750dc641119e
libhb: Minor nlmeans optimizations.

Use calloc for nlmeans integral instead of memsets in-loop zeroing.
Replace superfluous const with literal in SSE implementation.
Move exponential table calculation out of the main loop.
More const correctness.
Add some braces.

Overall, slightly more readable/maintainable and (very) slightly faster.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6874 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/nlmeans.c
libhb/nlmeans_x86.c