* PATCH: gspca-pac207-framesize.patch
@ 2008-07-06 6:12 Hans de Goede
0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2008-07-06 6:12 UTC (permalink / raw)
To: Jean-Francois Moine; +Cc: video4linux-list
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
Hi,
The pac207 only does compression when the usb bandwidth mandates it, so when
in full ress mode but doing low framerates (high exposure) setting it does not
compress. Adjust full res bufsize for this, otherwise things stop working when
the framerate gets too low.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Regards,
Hans
[-- Attachment #2: gspca-pac207-framesize.patch --]
[-- Type: text/x-patch, Size: 877 bytes --]
The pac207 only does compression when the usb bandwidth mandates it, so when
in full ress mode but doing low framerates (high exposure) setting it does not
compress. Adjust full res bufsize for this, otherwise things stop working when
the framerate gets too low.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
diff -r 3bbf8991628b linux/drivers/media/video/gspca/pac207.c
--- a/linux/drivers/media/video/gspca/pac207.c Sat Jul 05 13:49:20 2008 +0200
+++ b/linux/drivers/media/video/gspca/pac207.c Sun Jul 06 08:08:19 2008 +0200
@@ -166,7 +166,9 @@
.priv = 1},
{352, 288, V4L2_PIX_FMT_PAC207, V4L2_FIELD_NONE,
.bytesperline = 352,
- .sizeimage = 352 * 288 / 2, /* compressed */
+ /* compressed, but only when needed (not compressed
+ when the framerate is low) */
+ .sizeimage = (352 + 2) * 288,
.colorspace = V4L2_COLORSPACE_SRGB,
.priv = 0},
};
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-06 6:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-06 6:12 PATCH: gspca-pac207-framesize.patch 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