Skip to contentSkip to conversation

PATCH: gspca-pac207-framesize.patch

PATCH Hans de Goede 1 participant 1 message Jul 6, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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.

Regards,

Hans

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.

linux/drivers/media/video/gspca/pac207.c +3 -1
diff -r 3bbf8991628b linux/drivers/media/video/gspca/pac207.c
@@ -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},
 };

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list