Join Today
+ Reply to Thread
Page 1 of 10 12345 ... LastLast
Results 1 to 10 of 95
  1. #1

    Default Controlling the Camera

    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

  2. #2

    Default Re: Controlling the Camera

    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.

  3. #3

    Default Re: Controlling the Camera

    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

  4. #4

    Default Re: Controlling the Camera

    Found that for Java, but didn't test it on my A780.

    http://developers.sun.com/techtopics...icles/picture/

  5. #5
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    21

    Default Re: Controlling the Camera

    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..
    Attached Files Attached Files

  6. #6

    Default Re: Controlling the Camera

    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

  7. #7

    Default Re: Controlling the Camera

    Language, please.

    Mods, censor.

  8. #8
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default Re: Controlling the Camera

    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

  9. #9
    Guest

    Default Re: Controlling the Camera

    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

  10. #10


 
+ Reply to Thread
Page 1 of 10 12345 ... LastLast

Similar Threads

  1. help regarding camera in E6
    By avenger143 in forum E6 General Chat
    Replies: 4
    Last Post: 04-24-2009, 09:24 AM
  2. Camera on E6
    By domel003 in forum E6 General Chat
    Replies: 8
    Last Post: 10-30-2008, 09:48 PM
  3. Camera
    By maid in forum A1200 General Chat
    Replies: 5
    Last Post: 02-21-2007, 05:35 AM
  4. Camera
    By maid in forum A1200 General Chat
    Replies: 3
    Last Post: 12-25-2006, 08:42 AM
  5. Controlling LED near navigation keys
    By dionua in forum Development
    Replies: 10
    Last Post: 09-11-2006, 12:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1