V4L/DVB (8834): gspca: Have a bigger buffer for sn9c10x compressed images.
Under certain conditions sonixb compressed frame size can get bigger then the uncompressed size (seen with 0c45:6028), so make the buffers slightly bigger. Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
f45f06b648
commit
5c51518da2
@@ -207,29 +207,29 @@ static struct ctrl sd_ctrls[] = {
|
|||||||
static struct v4l2_pix_format vga_mode[] = {
|
static struct v4l2_pix_format vga_mode[] = {
|
||||||
{160, 120, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
{160, 120, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
||||||
.bytesperline = 160,
|
.bytesperline = 160,
|
||||||
.sizeimage = 160 * 120,
|
.sizeimage = 160 * 120 * 5 / 4,
|
||||||
.colorspace = V4L2_COLORSPACE_SRGB,
|
.colorspace = V4L2_COLORSPACE_SRGB,
|
||||||
.priv = 2},
|
.priv = 2},
|
||||||
{320, 240, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
{320, 240, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
||||||
.bytesperline = 320,
|
.bytesperline = 320,
|
||||||
.sizeimage = 320 * 240,
|
.sizeimage = 320 * 240 * 5 / 4,
|
||||||
.colorspace = V4L2_COLORSPACE_SRGB,
|
.colorspace = V4L2_COLORSPACE_SRGB,
|
||||||
.priv = 1},
|
.priv = 1},
|
||||||
{640, 480, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
{640, 480, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
||||||
.bytesperline = 640,
|
.bytesperline = 640,
|
||||||
.sizeimage = 640 * 480,
|
.sizeimage = 640 * 480 * 5 / 4,
|
||||||
.colorspace = V4L2_COLORSPACE_SRGB,
|
.colorspace = V4L2_COLORSPACE_SRGB,
|
||||||
.priv = 0},
|
.priv = 0},
|
||||||
};
|
};
|
||||||
static struct v4l2_pix_format sif_mode[] = {
|
static struct v4l2_pix_format sif_mode[] = {
|
||||||
{176, 144, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
{176, 144, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
||||||
.bytesperline = 176,
|
.bytesperline = 176,
|
||||||
.sizeimage = 176 * 144,
|
.sizeimage = 176 * 144 * 5 / 4,
|
||||||
.colorspace = V4L2_COLORSPACE_SRGB,
|
.colorspace = V4L2_COLORSPACE_SRGB,
|
||||||
.priv = 1},
|
.priv = 1},
|
||||||
{352, 288, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
{352, 288, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
|
||||||
.bytesperline = 352,
|
.bytesperline = 352,
|
||||||
.sizeimage = 352 * 288,
|
.sizeimage = 352 * 288 * 5 / 4,
|
||||||
.colorspace = V4L2_COLORSPACE_SRGB,
|
.colorspace = V4L2_COLORSPACE_SRGB,
|
||||||
.priv = 0},
|
.priv = 0},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user