black level, white level and QTPanel.m

View: New views
1 Messages — Rating Filter:   Alert me  

black level, white level and QTPanel.m

by Theodore Watson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi - quick introduction.
My name is Theo Watson and I am developer for the openFrameworks  
project - ( http://openframeworks.cc )

I have also been unofficially helping develop the PS3 Eye support for  
Macam: (source and component here) http://www.openframeworks.cc/forum/viewtopic.php?p=8254#p8254
Basically I have added, hue, shutter speed, gain, multiple cameras,  
manual exposure, limited white balance and increased frame-rate  
support, to try and get it on par with the windows PS3 eye driver.

As a result it has become quite a widely used webcam for diy and  
homebrew video tracking projects as it is possible to set the camera  
to be fully manual.
Everything has been going great in regards to adding features and  
improving reliability - but I have got stuck on one thing and after  
weeks of searching I am really stumped.

In order to allow people to control the gain and shutter speed of the  
camera from the default quicktime adjustments panel I wired up the  
black level and white level sliders to control gain and shutter speed  
respectively.
It works perfectly in that people can use the sliders to set the  
shutter speed and gain.

The only issue I have is that the black level and white level sliders  
do not restore their values.
For the PS3 Eye I also added hue control the same way as the black  
level and white level sliders (by adding the methods to  
QTVideoDigitizer.m ) and this slider gets restored no problem.

I am totally stumped in why QT is ignoring those sliders even though  
they are active and respond in all other ways.

The suspicion I have is either:
a) Quicktime just doesn't care about 'black level' and 'white level'  
sliders
b) componentSubType='wcam' somehow means ignore these values as they  
are not relevant to a webcam
c) there is something I am missing in QTComponent.r that is saying -  
make sure to load values from preferences.

Checking my settings file the settings for black level and white level  
are correctly being saved.
But on startup vdigLookupSelector iterates over all the other sliders  
setting them to their correct values - but ignores  
kVDSetBlackLevelValueSelect and kVDSetWhiteLevelValueSelect .

Any thoughts or ideas would greatly be appreciated!
I hope my additions to the OV534Driver are useful for the project in  
general.

Thank you!
Theo

-------------------------------------
Theo Watson

www.theowatson.com
www.openframeworks.cc
-------------------------------------


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
webcam-osx-devs mailing list
webcam-osx-devs@...
https://lists.sourceforge.net/lists/listinfo/webcam-osx-devs