* [PATCH] Increase max exposure value to 255 from 26.
@ 2011-06-04 7:38 Marco Diego Aurélio Mesquita
2011-06-04 8:21 ` Hans de Goede
2011-10-31 12:36 ` Hans de Goede
0 siblings, 2 replies; 4+ messages in thread
From: Marco Diego Aurélio Mesquita @ 2011-06-04 7:38 UTC (permalink / raw)
To: linux-media
The inline patch increases maximum exposure value from 26 to 255. It
has been tested and works well. Without the patch the captured image
is too dark and can't be improved too much.
Please CC answers as I'm not subscribed to the list.
Signed-off-by: Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
---
drivers/media/video/gspca/pac207.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/video/gspca/pac207.c
b/drivers/media/video/gspca/pac207.c
index 892b454..6a2fb26 100644
--- a/drivers/media/video/gspca/pac207.c
+++ b/drivers/media/video/gspca/pac207.c
@@ -39,7 +39,7 @@ MODULE_LICENSE("GPL");
#define PAC207_BRIGHTNESS_DEFAULT 46
#define PAC207_EXPOSURE_MIN 3
-#define PAC207_EXPOSURE_MAX 26
+#define PAC207_EXPOSURE_MAX 255
#define PAC207_EXPOSURE_DEFAULT 5 /* power on default: 3 */
#define PAC207_EXPOSURE_KNEE 8 /* 4 = 30 fps, 11 = 8, 15 = 6 */
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Increase max exposure value to 255 from 26.
2011-06-04 7:38 [PATCH] Increase max exposure value to 255 from 26 Marco Diego Aurélio Mesquita
@ 2011-06-04 8:21 ` Hans de Goede
2011-06-04 20:27 ` Marco Diego Aurélio Mesquita
2011-10-31 12:36 ` Hans de Goede
1 sibling, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2011-06-04 8:21 UTC (permalink / raw)
To: Marco Diego Aurélio Mesquita; +Cc: linux-media
Hi,
Interesting. I'll go and test this with my 6 or so pac207 cameras,
but first I need to wait till this evening as atm it is too
light to test high exposure settings :)
Regards,
Hans
On 06/04/2011 09:38 AM, Marco Diego Aurélio Mesquita wrote:
> The inline patch increases maximum exposure value from 26 to 255. It
> has been tested and works well. Without the patch the captured image
> is too dark and can't be improved too much.
>
> Please CC answers as I'm not subscribed to the list.
>
>
> Signed-off-by: Marco Diego Aurélio Mesquita<marcodiegomesquita@gmail.com>
> ---
> drivers/media/video/gspca/pac207.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/video/gspca/pac207.c
> b/drivers/media/video/gspca/pac207.c
> index 892b454..6a2fb26 100644
> --- a/drivers/media/video/gspca/pac207.c
> +++ b/drivers/media/video/gspca/pac207.c
> @@ -39,7 +39,7 @@ MODULE_LICENSE("GPL");
> #define PAC207_BRIGHTNESS_DEFAULT 46
>
> #define PAC207_EXPOSURE_MIN 3
> -#define PAC207_EXPOSURE_MAX 26
> +#define PAC207_EXPOSURE_MAX 255
> #define PAC207_EXPOSURE_DEFAULT 5 /* power on default: 3 */
> #define PAC207_EXPOSURE_KNEE 8 /* 4 = 30 fps, 11 = 8, 15 = 6 */
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Increase max exposure value to 255 from 26.
2011-06-04 8:21 ` Hans de Goede
@ 2011-06-04 20:27 ` Marco Diego Aurélio Mesquita
0 siblings, 0 replies; 4+ messages in thread
From: Marco Diego Aurélio Mesquita @ 2011-06-04 20:27 UTC (permalink / raw)
To: linux-media
I think there maybe some different versions of the chip. Whenever I
get a webcam with a pac207, it has the problem described here:
http://ubuntuforums.org/archive/index.php/t-1553690.html
2011/6/4 Hans de Goede <hdegoede@redhat.com>:
> Hi,
>
> Interesting. I'll go and test this with my 6 or so pac207 cameras,
> but first I need to wait till this evening as atm it is too
> light to test high exposure settings :)
>
> Regards,
>
> Hans
>
>
> On 06/04/2011 09:38 AM, Marco Diego Aurélio Mesquita wrote:
>>
>> The inline patch increases maximum exposure value from 26 to 255. It
>> has been tested and works well. Without the patch the captured image
>> is too dark and can't be improved too much.
>>
>> Please CC answers as I'm not subscribed to the list.
>>
>>
>> Signed-off-by: Marco Diego Aurélio Mesquita<marcodiegomesquita@gmail.com>
>> ---
>> drivers/media/video/gspca/pac207.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/media/video/gspca/pac207.c
>> b/drivers/media/video/gspca/pac207.c
>> index 892b454..6a2fb26 100644
>> --- a/drivers/media/video/gspca/pac207.c
>> +++ b/drivers/media/video/gspca/pac207.c
>> @@ -39,7 +39,7 @@ MODULE_LICENSE("GPL");
>> #define PAC207_BRIGHTNESS_DEFAULT 46
>>
>> #define PAC207_EXPOSURE_MIN 3
>> -#define PAC207_EXPOSURE_MAX 26
>> +#define PAC207_EXPOSURE_MAX 255
>> #define PAC207_EXPOSURE_DEFAULT 5 /* power on default: 3 */
>> #define PAC207_EXPOSURE_KNEE 8 /* 4 = 30 fps, 11 = 8, 15 = 6 */
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Increase max exposure value to 255 from 26.
2011-06-04 7:38 [PATCH] Increase max exposure value to 255 from 26 Marco Diego Aurélio Mesquita
2011-06-04 8:21 ` Hans de Goede
@ 2011-10-31 12:36 ` Hans de Goede
1 sibling, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2011-10-31 12:36 UTC (permalink / raw)
To: Marco Diego Aurélio Mesquita; +Cc: linux-media
Hi,
Thanks for the patch, I've taken a look at this, and the way the pac207's
exposure control works is it sets the fps according to the formula of:
90 / exposure reg value. So the old max setting gave you a max exposure
time of 90 / 26 = 3.46 fps or 288.9 milliseconds.
3.46 fps already is quite slow for a webcam, but I agree that under low light
conditions higher exposure settings are necessary. However setting a max
value of 255 would mean the camera would run at 0.35 fps, which would mean
3 seconds between frames likely triggering timeouts in various applications,
or if a frame gets damaged and dropped, 6 seconds, triggering a timeout
condition inside the gspca core.
Thinking more about this I think that a max exposure setting of 1 second
is a sane value, so I've prepared a patch and send a pull request for
this to Mauro which changes the max exposure setting to 90. I've also
included some tweaks to the knee values for the auto exposure knee
algorithm used, to make auto exposure work better under various
circumstances.
Regards,
Hans
On 06/04/2011 09:38 AM, Marco Diego Aurélio Mesquita wrote:
> The inline patch increases maximum exposure value from 26 to 255. It
> has been tested and works well. Without the patch the captured image
> is too dark and can't be improved too much.
>
> Please CC answers as I'm not subscribed to the list.
>
>
> Signed-off-by: Marco Diego Aurélio Mesquita<marcodiegomesquita@gmail.com>
> ---
> drivers/media/video/gspca/pac207.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/video/gspca/pac207.c
> b/drivers/media/video/gspca/pac207.c
> index 892b454..6a2fb26 100644
> --- a/drivers/media/video/gspca/pac207.c
> +++ b/drivers/media/video/gspca/pac207.c
> @@ -39,7 +39,7 @@ MODULE_LICENSE("GPL");
> #define PAC207_BRIGHTNESS_DEFAULT 46
>
> #define PAC207_EXPOSURE_MIN 3
> -#define PAC207_EXPOSURE_MAX 26
> +#define PAC207_EXPOSURE_MAX 255
> #define PAC207_EXPOSURE_DEFAULT 5 /* power on default: 3 */
> #define PAC207_EXPOSURE_KNEE 8 /* 4 = 30 fps, 11 = 8, 15 = 6 */
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-31 12:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-04 7:38 [PATCH] Increase max exposure value to 255 from 26 Marco Diego Aurélio Mesquita
2011-06-04 8:21 ` Hans de Goede
2011-06-04 20:27 ` Marco Diego Aurélio Mesquita
2011-10-31 12:36 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox