Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wrote the Lanczos3 scaler that Picasa uses (about 14 years ago!), and it doesn't (by default) correct for gamma.

For most images & kernels, you can get by with doing math in about 31 bits total precision (a bit for underflow clamping), so that's the magic speed improvement from ignoring gamma on old 32-bit architectures.

If you gamma-correct, your sources will need to be 10-12 bpc after transformation, and you'll need >32 bits of integer precision for large kernels. Even though x86 has a 32x32 -> 32bit high word multiply, this all gets a lot better on x64.

So basically: today on 64-bit machines (or wide SIMD) you could do gamma-correct resampling a whole lot cheaper than you could do 10 years ago.

[edit] In the end you notice the difference with line art, but for most photographs you want to spend spend your CPU budget on sharpness (by using wider kernels).



> I wrote the Lanczos3 scaler that Picasa uses (about 14 years ago!),

What are you doing now? Picasa hasn't changed much since Google bought it and ignored it (except for adding G+ integration)


It pops up wanting to download an update about every week for years and years now.


Is it the same update?


Nah, sometimes they ship with a blank or missing dock icon, but IIRC they always include windows .exe files buried within the Mac app bundle ?!

Curiously, even after all those annoying update popups, this photography viewer app still does not support retina displays.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: