aMSN Forums
July 29, 2010, 04:08:35 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Initial SN9C10x-based webcam support for Linux  (Read 4942 times)
ggambett
Newbie

Offline Offline

Posts: 3


View Profile
« on: March 09, 2007, 11:46:57 pm »

I've implemented a first version of SN9C10x-based webcam support for Linux. This sort-of works, at least with my setup - a Genius Videocam Look (SN9C103 with OV7630 sensor), sn9c102 driver 1.39 (from www.linux-projects.org - didn't test the older version in the kernel), kernel 2.6.19 (2.6.19-1.2911.6.5.fc6)

This actually patches libng, which I realize is actually part of xawtv 3.x, but since it's distributed with AMSN and this will be helpful for lots of AMSN users, I'm posting it here Smiley

Get it here : http://www.mysterystudio.com/gabriel/libng-sn9c10x-0.1.tar.gz

Limitations : not sure. Image looks crappy (more or less black and white, zoom is wrong sometimes) and the brightness/contrast/color balance controls don't work, but I don't know if it's a libng issue or if the driver doesn't support the ioctls. I'll keep investigating, but of course any help is welcome.

By the way, I also made a script that merges AMSN logs - http://www.mysterystudio.com/gabriel/merge-amsn-logs.py.txt I use it with unison to merge my desktop and notebook logs. It's probably buggy and it depends on the format of the logs including the date format, but it works for me. Someone may do something useful with it Smiley
Logged

Gabriel Gambetta
Mystery Studio
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9390


View Profile WWW
« Reply #1 on: March 11, 2007, 01:08:52 am »

Hello,
Thanks Gabriel, your fix has been committed to SVN (r8187) as requested. Any feedback about the new code should be posted here.

EDIT : btw, the limitations you described are not caused by your code, it depends on the driver's and the webcam's capabilities, we can't fix that unless the webcam supports it and the driver is improved.
Logged

KaKaRoTo
ggambett
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #2 on: March 11, 2007, 05:55:43 pm »

Cool, thanks Smiley

Sorry for not submitting a patch. I actually did this over a one day old SVN snapshot instead of a SVN checkout. I'll do my future contributions correctly.
Logged

Gabriel Gambetta
Mystery Studio
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9390


View Profile WWW
« Reply #3 on: March 11, 2007, 10:36:36 pm »

hehe, don't worry, it was ok since the C components are rarely modified, for example, the capture extension was last modified a few times from december 29th 2006 to january 1st 2007, and before that it was in june 2006.. so your one day old svn snapshot was ok... but just in case, for the future, it would be best to use 'svn diff' (especially for a review of the code, now it was easy I overwrote my libng dir, then did svn diff and reviewed the changes before committing).
Logged

KaKaRoTo
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!