[cpia] CPiA colour balance problem [patch]
rich@annexia.org
rich@annexia.org
Sun, 5 Mar 2000 15:04:43 +0000
It turns out that the second part of the problem (I accused
a bug in the firmware, if you recall) may well not actually
be a problem with the camera :-)
I looked closely at what was being returned from the GetExposure
call, and the values being returned appear to be completely
bogus.
For example:
$ grep '_comp' /proc/cpia/video0
red_comp: 0 220 255 220
green1_comp: 0 214 255 214
green2_comp: 192 214 255 214
blue_comp: 128 230 255 230
and also with debugging turned on in the kernel:
Mar 5 14:59:17 arctor kernel: usb.c: cpia driver claimed interface d3f6f440
Mar 5 15:00:25 arctor kernel: cpia.c(49441230):goto_low_power(2315):camera now in LOW power state
Mar 5 15:00:25 arctor kernel: cpia.c(49441239):goto_high_power(2301):camera now in HIGH power state
Mar 5 15:00:26 arctor kernel: cpia.c(49441252):dispatch_commands(2032):1 1 0 0 1 1 1 1
Mar 5 15:00:26 arctor kernel: cpia.c(49441252):dispatch_commands(2033):0 1 1 1 1 1 0 1
Mar 5 15:00:26 arctor kernel: cpia.c(49441257):save_camera_state(2335):1/0/0/1/0/0/192/128
Note that the values printed out for red_comp, green?_comp and
blue_comp in save_camera_state are wrong.
Any ideas? These seem to be read straight from the camera.
Rich.
--
rich@annexia.org | Is your school part of http://www.schoolmaster.net ?
BiblioTech Ltd, Unit 2 Piper Centre, 50 Carnwath Road, London, SW6 3EG.
+44 20 7384 6917 | Click here to play XRacer: http://xracer.annexia.org
Copyright © 2000 Richard Jones | GnuPG/PGP key from www.annexia.org