News for hackers. Stuff that matters.
Re:Experimental Nighttime Photography with Nexus and Pixel by polyvisual on Tuesday April 25, 2017 @02:09PM (#14196382)
"The camera cannot handle exposure times longer than two seconds."

What's the reason for this? Is it a hardware restriction? I suppose an artificial software restriction could be removed by using root / other camera software.

Re:Experimental Nighttime Photography with Nexus and Pixel by quantumet on Tuesday April 25, 2017 @03:15PM (#14197042)
Mostly hardware.

Shortest explanation: The sensor exposure time register has a maximum value.

Next shortest: But it's actually in units of row readout time, on many sensors, which is also configurable, so the exposure time can be made longer at the cost of slower image readout. In normal operation, readout has to happen at 30fps at least, so extra code is needed to switch to slower readout for extended exposure values. This code then needs validation, the image processing tuning tables need to be updated and verified for the new long exposure durations, and any preview glitches, etc, from resetting base sensor configurations need to be addressed. So a lot of extra work, for a relatively niche feature on a smartphone.

Even longer: Many sensors also have an external shutter trigger signal pin, for unlimited exposure duration. But that needs to be wired to the CPU, and all the SW considerations above also apply.

Re:Experimental Nighttime Photography with Nexus and Pixel by ahakki on Tuesday April 25, 2017 @03:51PM (#14197333)
Couldn't it just be a heat dissipation issue? These sensors pack a lot of photo sites into a tiny package.
Re:Experimental Nighttime Photography with Nexus and Pixel by quantumet on Tuesday April 25, 2017 @04:41PM (#14197774)
To first order, long exposures are probably less power-hungry - much of the sensor power is burned in the image readout, and longer exposures mean you're reading images less often.

When collecting light, an image sensor pixel isn't really using up any active power (each pixel is basically a capacitor collecting electrons generated by light hitting the silicon).

Re:Experimental Nighttime Photography with Nexus and Pixel by jfindley on Wednesday April 26, 2017 @08:38AM (#14202426)
I don't believe this is entirely correct. DSLR sensors get very hot during long exposures - to the point where excessively long exposures can introduce noise into the output from this heat. I don't see why this wouldn't apply even more so to phone sensors, with their incredibly high photosite density.

However really long exposures are going to suffer from star trail effects - the earth is rotating relative to the stars, so a long exposure changes stars from a point to a short line, which _usually_ isn't what you want. On a 35mm camera with a fairly wide lens you can get away with ~ 30s of exposure time.

On a pixel phone I think you'd be able to get away with ~ 3s exposure time, but as it's going to get pretty hot over this time I'm not sure how much extra image quality you'd actually end up with.

Re:Experimental Nighttime Photography with Nexus and Pixel by ipsum2 on Tuesday April 25, 2017 @04:46PM (#14197826)
It's interesting to note that the Nexus 5, released in 2013, could take exposures up to 30 seconds, iirc. Different sensor hardware.
Re:Experimental Nighttime Photography with Nexus and Pixel by Ajedi32 on Tuesday April 25, 2017 @03:06PM (#14196960)
The article states that the author wrote his own camera app for the experiment, so it's almost certainly not a restriction that can be worked around by using different camera software.
Re:Experimental Nighttime Photography with Nexus and Pixel by leoedin on Tuesday April 25, 2017 @06:03PM (#14198526)
It's almost certainly not something you can work around with a user space Android app, but "software" covers far more than just that. By the time you're triggering the Android camera APIs you're already very far removed from the software actually talking to the hardware, which is probably where this restriction lies.