| Option | Description | Detailed Comment |
|---|---|---|
| brightness | The brightness level for the video device. Valid range:0 to 255 Default:0 (Disabled) |
If this setting is used in conjunction with the auto_brightness feature then this setting is just an initial setting and then the auto_brightness feature takes over. |
| contrast | The contrast level for the video device. Valid range: 0 to 255 Default = 0 (Disabled) |
|
| saturation | The saturation level for the video device. Valid range: 0 to 255 Default = 0 (Disabled) |
|
| hue | The hue level for the video device. Valid range: 0 to 255 Default = 0 (Disabled) |
$ cd motion-3.1.17 $ patch -p1 < picture_controls.patch
video.c looks quite different from video_freebsd.c and I have no way of testing it on FreeBSD.
But in contrast to most options these everyone can understand so that does not worry me too much
So my oppinion about the patch and its change to be part of mainline Motion is
Does it break FreeBSD?
Even if the feature cannot be implemented on bktr - it is still worth considering on the Linux side.
Things we need to test (also a reminder to myself).
Patch installed OK with the proper command.
[root@pcp09382552pcs motion-3.1.16]# patch -p1 < picture_controls.patch
patching file conf.c
patching file conf.h
patching file motion.c
patching file video.c
patching file video.h
Did a make clean, ./configure --without-mysql --without-pgsql, make, and make install with no complaints.
However, the new options are nowhere to be found in the new motion-dist.conf.
Has anyone gotten this to work with bttv and v4l2? I have not tried this on my box running a 2.4 kernel with v4l, just the box with the 2.6 kernel.
Thanks for the quick response.
Jim
-- JimFager - 10 Oct 2004motion-control conf write
-- KennethLavrsen - 10 Oct 2004
Mike & Kenneth, Thanks.
Re-writing motion.conf with "motion-control conf write" did not include the new parameters. However, looking at the source for the patch and seeing the new parameters added after the auto_brightness, I added the 4 new controls after the auto_brightness setting.
brightness 0
contrast 0
saturation 0
hue 50
Success!
I wasn't sure where to start with hue and added an arbitrary number. Running in non-daemon mode, I received "hue: 32768(50)" and would you believe that was the PERFECT setting for my hue problem.
Thanks a lot. All is working perfectly and I'm a happy camper!
for (i = 0; i < cnt->conf.width * cnt->conf.height * 3; i + 100) {= is also re-introduced in this patch.
I will clean it up when I patch my new 3.1.18 sources. No need to submit more versions of this patch. It will be in the 3.1.18 snap1.
-- KennethLavrsen - 19 Oct 2004
conf instead of imgs. If that is cleaned up separately as well, then there will probably be problems applying the rotate patch.
-- PerJonsson - 19 Oct 2004
| PatchStatus | ReleasedIncluded |
| PatchVersion | |
| PatchSubmittedBy | MikeLees |
| PatchHandledBy | |
| PatchForVersion | 3.1.17 |
| PatchDependencies | |
| ScheduledForVersion | 3.1.18 |
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
picture_controls.patch | manage | 7.7 K | 19 Oct 2004 - 13:52 | AngelCarpintero | Patch is a little buggy. See MotionRelease3x1x18snap1 for full source incl this patch |