From: Hans de Goede <hdegoede@redhat.com>
To: Antonio Ospite <ao2@ao2.it>, Joe Howse <josephhowse@nummist.com>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] gspca: Add high-speed modes for PS3 Eye camera
Date: Thu, 15 Jan 2015 11:53:02 +0100 [thread overview]
Message-ID: <54B79C0E.4080903@redhat.com> (raw)
In-Reply-To: <20150104162909.f29952436894222f8074862f@ao2.it>
Hi,
On 04-01-15 16:29, Antonio Ospite wrote:
> On Mon, 29 Dec 2014 11:00:03 -0400
> Joe Howse <josephhowse@nummist.com> wrote:
>
>> Add support in the PS3 Eye driver for QVGA capture at higher
>> frame rates: 187, 150, and 137 FPS. This functionality is valuable
>> because the PS3 Eye is popular for computer vision projects and no
>> other camera in its price range supports such high frame rates.
>>
>> Correct a QVGA mode that was listed as 40 FPS. It is really 37 FPS
>> (half of 75 FPS).
>>
>> Tests confirm that the nominal frame rates are achieved.
>>
>> Signed-off-by: Joe Howse <josephhowse@nummist.com>
>
> Tested-by: Antonio Ospite <ao2@ao2.it>
Joe, thanks for the patch, Antonio, thanks for testing, I've queued
this up in my gspca tree for merging into the 3.20 kernel
Regards,
Hans
>
> Thanks Joe.
>
> I noticed that qv4l2 displays max 60fps even though from the video I can
> perceive the higher framerate, and same happens in guvcview.
>
> gst-inspect-1.0 won't even let me set framerates higher than 75 so
> I didn't test with GStreamer.
>
> I know that the camera is also able to stream raw Bayer data which
> requires less bandwidth than the default YUYV, although the driver does
> not currently expose that; maybe some higher framerates can be achieved
> also at VGA with Bayer output.
>
> In case you wanted to explore that remember to set supported framerates
> appropriately in ov772x_framerates for the 4 combinations of formats and
> resolutions (i.e. Bayer outputs will support more framerates).
>
> Ciao,
> Antonio
>
>> ---
>> drivers/media/usb/gspca/ov534.c | 10 ++++++++--
>> 1 file changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/media/usb/gspca/ov534.c b/drivers/media/usb/gspca/ov534.c
>> index 90f0d63..a9c866d 100644
>> --- a/drivers/media/usb/gspca/ov534.c
>> +++ b/drivers/media/usb/gspca/ov534.c
>> @@ -12,6 +12,8 @@
>> * PS3 Eye camera enhanced by Richard Kaswy http://kaswy.free.fr
>> * PS3 Eye camera - brightness, contrast, awb, agc, aec controls
>> * added by Max Thrun <bear24rw@gmail.com>
>> + * PS3 Eye camera - FPS range extended by Joseph Howse
>> + * <josephhowse@nummist.com> http://nummist.com
>> *
>> * This program is free software; you can redistribute it and/or modify
>> * it under the terms of the GNU General Public License as published by
>> @@ -116,7 +118,7 @@ static const struct v4l2_pix_format ov767x_mode[] = {
>> .colorspace = V4L2_COLORSPACE_JPEG},
>> };
>>
>> -static const u8 qvga_rates[] = {125, 100, 75, 60, 50, 40, 30};
>> +static const u8 qvga_rates[] = {187, 150, 137, 125, 100, 75, 60, 50, 37, 30};
>> static const u8 vga_rates[] = {60, 50, 40, 30, 15};
>>
>> static const struct framerates ov772x_framerates[] = {
>> @@ -769,12 +771,16 @@ static void set_frame_rate(struct gspca_dev *gspca_dev)
>> {15, 0x03, 0x41, 0x04},
>> };
>> static const struct rate_s rate_1[] = { /* 320x240 */
>> +/* {205, 0x01, 0xc1, 0x02}, * 205 FPS: video is partly corrupt */
>> + {187, 0x01, 0x81, 0x02}, /* 187 FPS or below: video is valid */
>> + {150, 0x01, 0xc1, 0x04},
>> + {137, 0x02, 0xc1, 0x02},
>> {125, 0x02, 0x81, 0x02},
>> {100, 0x02, 0xc1, 0x04},
>> {75, 0x03, 0xc1, 0x04},
>> {60, 0x04, 0xc1, 0x04},
>> {50, 0x02, 0x41, 0x04},
>> - {40, 0x03, 0x41, 0x04},
>> + {37, 0x03, 0x41, 0x04},
>> {30, 0x04, 0x41, 0x04},
>> };
>>
>> --
>> 1.9.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-media" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
prev parent reply other threads:[~2015-01-15 10:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-29 15:00 Joe Howse
2015-01-04 15:29 ` Antonio Ospite
2015-01-15 10:53 ` Hans de Goede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54B79C0E.4080903@redhat.com \
--to=hdegoede@redhat.com \
--cc=ao2@ao2.it \
--cc=josephhowse@nummist.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome