I have tested with some modified console applications based in v4l for pc, but had no sucess(I got pictures, but containing random data), however I tried very little.
I think that with some time spent on that, it can be controlled.
Hello,
I'm considering purchasing a motorola linux phone to test some camera applications out. But as far as i can tell from these forums, nobody has figured out how to control the camera yet (obviously outside of the UI, like with C/C++ or some other language). Is this true?
Thanks
Adrian
I have tested with some modified console applications based in v4l for pc, but had no sucess(I got pictures, but containing random data), however I tried very little.
I think that with some time spent on that, it can be controlled.
Maybe this is a stupid question, but im just learning this stuff so bear with me
i noticed that the J2ME documentation for the A780 (trix2.cellmania.com/downloads/downloads/pdf/DG_A780.pdf)
you can call the function videoControl.getSnapshot() to take a picture.
I guess after this its just a matter of locating where the image is saved on the hard drive.
But to implement this in C/C++ i guess i'de have to do some kind of kernel call catching to figure out what the videoControl.getSnapshot() function does to make the camera take a picture?
I wonder if the source for videoControl.getSnapshot() is open??
I know the kernel source for these phones is open, but i think (as far as im aware) the source for the User Interface is not.
Hopefully i can get it to work once i get the phone!
Any input is greatly appreciated.
-Adrian
Found that for Java, but didn't test it on my A780.
http://developers.sun.com/techtopics...icles/picture/
Here's a bit of C code that at least gets a raw picture from the camera.
The format is YUV422 planar AFAIK, the first half of the raw data is simply
a greyscale image, the second half are two planes of color data (but every
color conversion I've tried so far has given some rather psychedelic stuff..)
Anyway, please feel free to try this code and improve upon it.
Yours, Floe
EDIT: forgot to mention: there's also a border of 64 pixels on the left side
of the image which seems to be wrapped around. No idea where this comes
from..
Uncompressed?!?! FUCKING AWESOME! you rock dude. im gonna buy this phone asap! I should be able to get compression working once i get it.
Dre
Language, please.
Mods, censor.
Waiting for your work guys. Maybe we can merge with fbvncserver to make E680/i as webcam.
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6
Has anybody already made progress with the example code I posted?
Didn't have time to tinker with it myself so far, maybe someone else has?
Floe