On Mon, May 14, 2012 at 1:40 PM, Fabrice Desré <[email protected]> wrote:
> interface CameraControl {
> // takes a full resolution capture. Passes a DOMFile to successCB.
> void takePicture(successCB, [errorCB]);
Wouldn't we use the "normal" getUserMedia({picture:true}) API for this?
> // asks the hardware to autofocus. successCB is called when the
> // autofocus has completed.
> void autofocus(successCB, [errorCB]);
Don't we need to be able to say which x/y coordinate to autofocus on?
Many devices today use touch-to-focus which lets the user choose where
on the screen to focus.
Also, do we need to allow setting the "exposure compensation" (the
thing that usually goes from -3EV to +3EV)? The iPhone does this in a
very nifty way where when you click a point on the screen, the camera
both focuses there, and adjusts the exposure compensation such that
that area is neither over exposed or under exposed.
/ Jonas
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media