diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-02-16 06:37:54 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 19:32:10 -0400 |
commit | 6899a9c7778a6d19edc74e2ef7dfb6daf21dc366 (patch) | |
tree | adc456d08042f50cdbba8d9d3e465cf4c1391d55 | |
parent | b39e0cb9018bf95348078ad74b3e0171e985389a (diff) |
[media] gspca_sn9c20x: Make buffers slightly larger for JPEG frames
In good lighting conditions (lots of details visible) the current buffers
are sometimes too small.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/gspca/sn9c20x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c index 52f44a5c1b2f..f51579c4e9dc 100644 --- a/drivers/media/video/gspca/sn9c20x.c +++ b/drivers/media/video/gspca/sn9c20x.c | |||
@@ -369,7 +369,7 @@ static const struct v4l2_pix_format vga_mode[] = { | |||
369 | .priv = SCALE_160x120}, | 369 | .priv = SCALE_160x120}, |
370 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | 370 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
371 | .bytesperline = 320, | 371 | .bytesperline = 320, |
372 | .sizeimage = 320 * 240 * 3 / 8 + 590, | 372 | .sizeimage = 320 * 240 * 4 / 8 + 590, |
373 | .colorspace = V4L2_COLORSPACE_JPEG, | 373 | .colorspace = V4L2_COLORSPACE_JPEG, |
374 | .priv = SCALE_320x240 | MODE_JPEG}, | 374 | .priv = SCALE_320x240 | MODE_JPEG}, |
375 | {320, 240, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE, | 375 | {320, 240, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE, |
@@ -384,7 +384,7 @@ static const struct v4l2_pix_format vga_mode[] = { | |||
384 | .priv = SCALE_320x240}, | 384 | .priv = SCALE_320x240}, |
385 | {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | 385 | {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
386 | .bytesperline = 640, | 386 | .bytesperline = 640, |
387 | .sizeimage = 640 * 480 * 3 / 8 + 590, | 387 | .sizeimage = 640 * 480 * 4 / 8 + 590, |
388 | .colorspace = V4L2_COLORSPACE_JPEG, | 388 | .colorspace = V4L2_COLORSPACE_JPEG, |
389 | .priv = SCALE_640x480 | MODE_JPEG}, | 389 | .priv = SCALE_640x480 | MODE_JPEG}, |
390 | {640, 480, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE, | 390 | {640, 480, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE, |
@@ -417,7 +417,7 @@ static const struct v4l2_pix_format sxga_mode[] = { | |||
417 | .priv = SCALE_160x120}, | 417 | .priv = SCALE_160x120}, |
418 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | 418 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
419 | .bytesperline = 320, | 419 | .bytesperline = 320, |
420 | .sizeimage = 320 * 240 * 3 / 8 + 590, | 420 | .sizeimage = 320 * 240 * 4 / 8 + 590, |
421 | .colorspace = V4L2_COLORSPACE_JPEG, | 421 | .colorspace = V4L2_COLORSPACE_JPEG, |
422 | .priv = SCALE_320x240 | MODE_JPEG}, | 422 | .priv = SCALE_320x240 | MODE_JPEG}, |
423 | {320, 240, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE, | 423 | {320, 240, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE, |
@@ -432,7 +432,7 @@ static const struct v4l2_pix_format sxga_mode[] = { | |||
432 | .priv = SCALE_320x240}, | 432 | .priv = SCALE_320x240}, |
433 | {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | 433 | {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
434 | .bytesperline = 640, | 434 | .bytesperline = 640, |
435 | .sizeimage = 640 * 480 * 3 / 8 + 590, | 435 | .sizeimage = 640 * 480 * 4 / 8 + 590, |
436 | .colorspace = V4L2_COLORSPACE_JPEG, | 436 | .colorspace = V4L2_COLORSPACE_JPEG, |
437 | .priv = SCALE_640x480 | MODE_JPEG}, | 437 | .priv = SCALE_640x480 | MODE_JPEG}, |
438 | {640, 480, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE, | 438 | {640, 480, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE, |