[cpia] cpia-control
Jean-Michel Merliot
jmmerliot@free.fr
Sat, 22 Jan 2000 01:05:56 +0100 (CET)
in fact, here is my /proc/cpia/video1 :
read-only
-----------------------
CPIA Version: 1.02 (1.0)
CPIA PnP-ID: 0553:0001:0100
VP-Version: 1.0 0100
system_state: 0x03
grab_state: 0x00
stream_state: 0x01
fatal_error: 0x00
cmd_error: 0x20
debug_flags: 0x00
vp_status: 0x60
error_code: 0x97
video_size: CIF
sub_sample: 422
yuv_order: YUYV
roi: ( 0, 0) to (352, 288)
actual_fps: 5
transfer_rate: 623kB/s
read-write
----------------------- current min max default comment
brightness: 50 0 100 50
contrast: 48 0 80 48 steps of 8
saturation: 50 0 100 50
sensor_fps: 15.000 3 30 15
stream_start_line: 240 0 288 240
ecp_timing: normal slow normal normal
color_balance_mode: auto manual auto auto
red_gain: 3 0 212 32
green_gain: 47 0 212 6
blue_gain: 212 0 212 92
max_gain: 2 1 2 2
exposure_mode: auto manual auto auto
centre_weight: on off on on
gain: 4 1 max_gain 1 1,2,4,8 possible
fine_exp: 0 0 255 0
coarse_exp: 302 0 255 185
red_comp: 220 220 255 220
green1_comp: 214 214 255 214
green2_comp: 214 214 255 214
blue_comp: 230 230 255 230
apcor_gain1: 0x1c 0x0 0xff 0x1c
apcor_gain2: 0x1a 0x0 0xff 0x1a
apcor_gain4: 0x2d 0x0 0xff 0x2d
apcor_gain8: 0x2a 0x0 0xff 0x2a
vl_offset_gain1: 24 0 255 24
vl_offset_gain2: 28 0 255 28
vl_offset_gain4: 30 0 255 30
vl_offset_gain8: 30 0 255 30
flicker_control: on off on off
mains_frequency: 50 50 60 50 only 50/60
allowable_overexposure: 0 0 255 0
compression_mode: auto none,auto,manual auto
decimation: off off off off
compression_target: framerate framerate quality quality
target_framerate: 20 0 30 7
target_quality: 10 0 255 10
y_threshold: 11 0 31 15
uv_threshold: 10 0 31 15
hysteresis: 3 0 255 3
threshold_max: 11 0 255 11
small_step: 1 0 255 1
large_step: 3 0 255 3
decimation_hysteresis: 2 0 255 2
fr_diff_step_thresh: 5 0 255 5
q_diff_step_thresh: 3 0 255 3
decimation_thresh_mod: 2 0 255 2
The changes are correctly set into the /proc/cpia/video1 file ( or pseudo file... )
There is no error message in the logs.
Changing contrast or color works OK.
Changing compression does not work. ( starts at none, stays there... )
Look at the actual framerate, and the targetted one, they are quiet different...
More than this, I obtain a better transfer rate ( > 600 Kb/s ) in pio mode than in
dma mode ( < 550 kb/s ) but I'm not sure this is not a normal behaviour.
And sometimes, when I initialize the whole stuff ( unloading modules, reloading them again
), the image is very dark, but I get a much better framerate ( around 15 fps. )
And the image is kind of grainy ( dunno how to tell it better ;-( ).
but my main problem is the lack of compression, it is very slow and the machine is
slowing every little while ( frequency around a second ) being somehow sloppy. As I
have a dual PII 450 and am just Seti@home'ing on both CPU, I can't see why ( well maybe
I'm getting CPU cycles greedy ;-) )
On 21-Jan-00 Peter Pregler wrote:
>
> On 21-Jan-2000 Jean-Michel Merliot wrote:
>>
>> Hi everybody,
>>
>> Driver 0.5.0 works perfectly on my SMP box, by I have problems
>> with the
>> cpia-control program, the gqcam client seems unaware of whatever changes
>> I make to the
>> compression mode, and it seems not to take care of whatever change I can
>> do by hand in
>> the /proc/cpia interface.
>>
>> By the way, I use the cpia cam in /dev/video1, in cased that
>> could change
>> something.
>>
>> Any idea of what I can do wrong ?
>
> To be honest, no. Do the values in the /proc/cpia/videoX change? Any
> successfull change will be immediatly visibile in the next read. Do you
> get error-messages in the system-log (something about error -22 IIRC)?
> That would signify invalid values. Is it possible to change the color of
> the image with the slider? That is about the most visible thing you can
> change. As for changing things by hand with echo to /proc/cpia/videoX:
> note that the number of spaces between token and value is significant. I
> just do a copy/paste in case I want to try out something.
>
> -Peter
>
> -------------------------------
> Email: Peter.Pregler@risc.uni-linz.ac.at
> WWW: http://www.risc.uni-linz.ac.at/people/ppregler