Skip to contentSkip to conversation

gspca - gl860: use of real resolutions for MI2020 sensor

PATCH New Olivier Lorin 1 participant 1 message Jun 1, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 gspca - gl860: use of real resolutions for MI2020 sensor

gspca - gl860: use of real resolutions for MI2020 sensor

From: Olivier Lorin <[email protected]>

- Change of rounded image resolutions to the real ones for MI2020 sensor in order to discard 2 random lines in the bottom of images

Priority: normal

gl860.c +4 -4
diff -urpN i3/gl860.c gl860/gl860.c
@@ -219,9 +219,9 @@ static struct v4l2_pix_format mi2020_mod
 		.colorspace = V4L2_COLORSPACE_SRGB,
 		.priv = 0
 	},
-	{ 800,  600, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
+	{ 800,  598, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
 		.bytesperline = 800,
-		.sizeimage = 800 * 600,
+		.sizeimage = 800 * 598,
 		.colorspace = V4L2_COLORSPACE_SRGB,
 		.priv = 1
 	},
@@ -231,9 +231,9 @@ static struct v4l2_pix_format mi2020_mod
 		.colorspace = V4L2_COLORSPACE_SRGB,
 		.priv = 2
 	},
-	{1600, 1200, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
+	{1600, 1198, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
 		.bytesperline = 1600,
-		.sizeimage = 1600 * 1200,
+		.sizeimage = 1600 * 1198,
 		.colorspace = V4L2_COLORSPACE_SRGB,
 		.priv = 3
 	},