Commit 6752d730 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] vivid: drop format description

The format description is now filled in by the core, so we can
drop this in this virtual driver.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 5b7ccde2
...@@ -77,7 +77,6 @@ extern const struct v4l2_rect vivid_max_rect; ...@@ -77,7 +77,6 @@ extern const struct v4l2_rect vivid_max_rect;
extern unsigned vivid_debug; extern unsigned vivid_debug;
struct vivid_fmt { struct vivid_fmt {
const char *name;
u32 fourcc; /* v4l2 format id */ u32 fourcc; /* v4l2 format id */
bool is_yuv; bool is_yuv;
bool can_do_overlay; bool can_do_overlay;
......
...@@ -40,7 +40,6 @@ static const struct v4l2_fract ...@@ -40,7 +40,6 @@ static const struct v4l2_fract
static const struct vivid_fmt formats_ovl[] = { static const struct vivid_fmt formats_ovl[] = {
{ {
.name = "RGB565 (LE)",
.fourcc = V4L2_PIX_FMT_RGB565, /* gggbbbbb rrrrrggg */ .fourcc = V4L2_PIX_FMT_RGB565, /* gggbbbbb rrrrrggg */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -48,7 +47,6 @@ static const struct vivid_fmt formats_ovl[] = { ...@@ -48,7 +47,6 @@ static const struct vivid_fmt formats_ovl[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "XRGB555 (LE)",
.fourcc = V4L2_PIX_FMT_XRGB555, /* gggbbbbb arrrrrgg */ .fourcc = V4L2_PIX_FMT_XRGB555, /* gggbbbbb arrrrrgg */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -56,7 +54,6 @@ static const struct vivid_fmt formats_ovl[] = { ...@@ -56,7 +54,6 @@ static const struct vivid_fmt formats_ovl[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "ARGB555 (LE)",
.fourcc = V4L2_PIX_FMT_ARGB555, /* gggbbbbb arrrrrgg */ .fourcc = V4L2_PIX_FMT_ARGB555, /* gggbbbbb arrrrrgg */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -1033,7 +1030,6 @@ int vidioc_enum_fmt_vid_overlay(struct file *file, void *priv, ...@@ -1033,7 +1030,6 @@ int vidioc_enum_fmt_vid_overlay(struct file *file, void *priv,
fmt = &formats_ovl[f->index]; fmt = &formats_ovl[f->index];
strlcpy(f->description, fmt->name, sizeof(f->description));
f->pixelformat = fmt->fourcc; f->pixelformat = fmt->fourcc;
return 0; return 0;
} }
......
...@@ -45,7 +45,6 @@ const struct v4l2_dv_timings_cap vivid_dv_timings_cap = { ...@@ -45,7 +45,6 @@ const struct v4l2_dv_timings_cap vivid_dv_timings_cap = {
struct vivid_fmt vivid_formats[] = { struct vivid_fmt vivid_formats[] = {
{ {
.name = "4:2:2, packed, YUYV",
.fourcc = V4L2_PIX_FMT_YUYV, .fourcc = V4L2_PIX_FMT_YUYV,
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -55,7 +54,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -55,7 +54,6 @@ struct vivid_fmt vivid_formats[] = {
.data_offset = { PLANE0_DATA_OFFSET }, .data_offset = { PLANE0_DATA_OFFSET },
}, },
{ {
.name = "4:2:2, packed, UYVY",
.fourcc = V4L2_PIX_FMT_UYVY, .fourcc = V4L2_PIX_FMT_UYVY,
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -64,7 +62,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -64,7 +62,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "4:2:2, packed, YVYU",
.fourcc = V4L2_PIX_FMT_YVYU, .fourcc = V4L2_PIX_FMT_YVYU,
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -73,7 +70,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -73,7 +70,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "4:2:2, packed, VYUY",
.fourcc = V4L2_PIX_FMT_VYUY, .fourcc = V4L2_PIX_FMT_VYUY,
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -82,7 +78,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -82,7 +78,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YUV 4:2:2 triplanar",
.fourcc = V4L2_PIX_FMT_YUV422P, .fourcc = V4L2_PIX_FMT_YUV422P,
.vdownsampling = { 1, 1, 1 }, .vdownsampling = { 1, 1, 1 },
.bit_depth = { 8, 4, 4 }, .bit_depth = { 8, 4, 4 },
...@@ -91,7 +86,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -91,7 +86,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YUV 4:2:0 triplanar",
.fourcc = V4L2_PIX_FMT_YUV420, .fourcc = V4L2_PIX_FMT_YUV420,
.vdownsampling = { 1, 2, 2 }, .vdownsampling = { 1, 2, 2 },
.bit_depth = { 8, 4, 4 }, .bit_depth = { 8, 4, 4 },
...@@ -100,7 +94,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -100,7 +94,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YVU 4:2:0 triplanar",
.fourcc = V4L2_PIX_FMT_YVU420, .fourcc = V4L2_PIX_FMT_YVU420,
.vdownsampling = { 1, 2, 2 }, .vdownsampling = { 1, 2, 2 },
.bit_depth = { 8, 4, 4 }, .bit_depth = { 8, 4, 4 },
...@@ -109,7 +102,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -109,7 +102,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YUV 4:2:0 biplanar",
.fourcc = V4L2_PIX_FMT_NV12, .fourcc = V4L2_PIX_FMT_NV12,
.vdownsampling = { 1, 2 }, .vdownsampling = { 1, 2 },
.bit_depth = { 8, 8 }, .bit_depth = { 8, 8 },
...@@ -118,7 +110,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -118,7 +110,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YVU 4:2:0 biplanar",
.fourcc = V4L2_PIX_FMT_NV21, .fourcc = V4L2_PIX_FMT_NV21,
.vdownsampling = { 1, 2 }, .vdownsampling = { 1, 2 },
.bit_depth = { 8, 8 }, .bit_depth = { 8, 8 },
...@@ -127,7 +118,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -127,7 +118,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YUV 4:2:2 biplanar",
.fourcc = V4L2_PIX_FMT_NV16, .fourcc = V4L2_PIX_FMT_NV16,
.vdownsampling = { 1, 1 }, .vdownsampling = { 1, 1 },
.bit_depth = { 8, 8 }, .bit_depth = { 8, 8 },
...@@ -136,7 +126,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -136,7 +126,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YVU 4:2:2 biplanar",
.fourcc = V4L2_PIX_FMT_NV61, .fourcc = V4L2_PIX_FMT_NV61,
.vdownsampling = { 1, 1 }, .vdownsampling = { 1, 1 },
.bit_depth = { 8, 8 }, .bit_depth = { 8, 8 },
...@@ -145,7 +134,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -145,7 +134,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YUV 4:4:4 biplanar",
.fourcc = V4L2_PIX_FMT_NV24, .fourcc = V4L2_PIX_FMT_NV24,
.vdownsampling = { 1, 1 }, .vdownsampling = { 1, 1 },
.bit_depth = { 8, 16 }, .bit_depth = { 8, 16 },
...@@ -154,7 +142,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -154,7 +142,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YVU 4:4:4 biplanar",
.fourcc = V4L2_PIX_FMT_NV42, .fourcc = V4L2_PIX_FMT_NV42,
.vdownsampling = { 1, 1 }, .vdownsampling = { 1, 1 },
.bit_depth = { 8, 16 }, .bit_depth = { 8, 16 },
...@@ -163,7 +150,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -163,7 +150,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YUV555 (LE)",
.fourcc = V4L2_PIX_FMT_YUV555, /* uuuvvvvv ayyyyyuu */ .fourcc = V4L2_PIX_FMT_YUV555, /* uuuvvvvv ayyyyyuu */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -172,7 +158,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -172,7 +158,6 @@ struct vivid_fmt vivid_formats[] = {
.alpha_mask = 0x8000, .alpha_mask = 0x8000,
}, },
{ {
.name = "YUV565 (LE)",
.fourcc = V4L2_PIX_FMT_YUV565, /* uuuvvvvv yyyyyuuu */ .fourcc = V4L2_PIX_FMT_YUV565, /* uuuvvvvv yyyyyuuu */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -180,7 +165,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -180,7 +165,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "YUV444",
.fourcc = V4L2_PIX_FMT_YUV444, /* uuuuvvvv aaaayyyy */ .fourcc = V4L2_PIX_FMT_YUV444, /* uuuuvvvv aaaayyyy */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -189,7 +173,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -189,7 +173,6 @@ struct vivid_fmt vivid_formats[] = {
.alpha_mask = 0xf000, .alpha_mask = 0xf000,
}, },
{ {
.name = "YUV32 (LE)",
.fourcc = V4L2_PIX_FMT_YUV32, /* ayuv */ .fourcc = V4L2_PIX_FMT_YUV32, /* ayuv */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 32 }, .bit_depth = { 32 },
...@@ -198,7 +181,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -198,7 +181,6 @@ struct vivid_fmt vivid_formats[] = {
.alpha_mask = 0x000000ff, .alpha_mask = 0x000000ff,
}, },
{ {
.name = "Monochrome",
.fourcc = V4L2_PIX_FMT_GREY, .fourcc = V4L2_PIX_FMT_GREY,
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 8 }, .bit_depth = { 8 },
...@@ -207,7 +189,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -207,7 +189,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "RGB332",
.fourcc = V4L2_PIX_FMT_RGB332, /* rrrgggbb */ .fourcc = V4L2_PIX_FMT_RGB332, /* rrrgggbb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 8 }, .bit_depth = { 8 },
...@@ -215,7 +196,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -215,7 +196,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "RGB565 (LE)",
.fourcc = V4L2_PIX_FMT_RGB565, /* gggbbbbb rrrrrggg */ .fourcc = V4L2_PIX_FMT_RGB565, /* gggbbbbb rrrrrggg */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -224,7 +204,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -224,7 +204,6 @@ struct vivid_fmt vivid_formats[] = {
.can_do_overlay = true, .can_do_overlay = true,
}, },
{ {
.name = "RGB565 (BE)",
.fourcc = V4L2_PIX_FMT_RGB565X, /* rrrrrggg gggbbbbb */ .fourcc = V4L2_PIX_FMT_RGB565X, /* rrrrrggg gggbbbbb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -233,7 +212,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -233,7 +212,6 @@ struct vivid_fmt vivid_formats[] = {
.can_do_overlay = true, .can_do_overlay = true,
}, },
{ {
.name = "RGB444",
.fourcc = V4L2_PIX_FMT_RGB444, /* xxxxrrrr ggggbbbb */ .fourcc = V4L2_PIX_FMT_RGB444, /* xxxxrrrr ggggbbbb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -241,7 +219,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -241,7 +219,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "XRGB444",
.fourcc = V4L2_PIX_FMT_XRGB444, /* xxxxrrrr ggggbbbb */ .fourcc = V4L2_PIX_FMT_XRGB444, /* xxxxrrrr ggggbbbb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -249,7 +226,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -249,7 +226,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "ARGB444",
.fourcc = V4L2_PIX_FMT_ARGB444, /* aaaarrrr ggggbbbb */ .fourcc = V4L2_PIX_FMT_ARGB444, /* aaaarrrr ggggbbbb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -258,7 +234,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -258,7 +234,6 @@ struct vivid_fmt vivid_formats[] = {
.alpha_mask = 0x00f0, .alpha_mask = 0x00f0,
}, },
{ {
.name = "RGB555 (LE)",
.fourcc = V4L2_PIX_FMT_RGB555, /* gggbbbbb xrrrrrgg */ .fourcc = V4L2_PIX_FMT_RGB555, /* gggbbbbb xrrrrrgg */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -267,7 +242,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -267,7 +242,6 @@ struct vivid_fmt vivid_formats[] = {
.can_do_overlay = true, .can_do_overlay = true,
}, },
{ {
.name = "XRGB555 (LE)",
.fourcc = V4L2_PIX_FMT_XRGB555, /* gggbbbbb xrrrrrgg */ .fourcc = V4L2_PIX_FMT_XRGB555, /* gggbbbbb xrrrrrgg */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -276,7 +250,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -276,7 +250,6 @@ struct vivid_fmt vivid_formats[] = {
.can_do_overlay = true, .can_do_overlay = true,
}, },
{ {
.name = "ARGB555 (LE)",
.fourcc = V4L2_PIX_FMT_ARGB555, /* gggbbbbb arrrrrgg */ .fourcc = V4L2_PIX_FMT_ARGB555, /* gggbbbbb arrrrrgg */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -286,7 +259,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -286,7 +259,6 @@ struct vivid_fmt vivid_formats[] = {
.alpha_mask = 0x8000, .alpha_mask = 0x8000,
}, },
{ {
.name = "RGB555 (BE)",
.fourcc = V4L2_PIX_FMT_RGB555X, /* xrrrrrgg gggbbbbb */ .fourcc = V4L2_PIX_FMT_RGB555X, /* xrrrrrgg gggbbbbb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -294,7 +266,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -294,7 +266,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "XRGB555 (BE)",
.fourcc = V4L2_PIX_FMT_XRGB555X, /* xrrrrrgg gggbbbbb */ .fourcc = V4L2_PIX_FMT_XRGB555X, /* xrrrrrgg gggbbbbb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -302,7 +273,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -302,7 +273,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "ARGB555 (BE)",
.fourcc = V4L2_PIX_FMT_ARGB555X, /* arrrrrgg gggbbbbb */ .fourcc = V4L2_PIX_FMT_ARGB555X, /* arrrrrgg gggbbbbb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 16 }, .bit_depth = { 16 },
...@@ -311,7 +281,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -311,7 +281,6 @@ struct vivid_fmt vivid_formats[] = {
.alpha_mask = 0x0080, .alpha_mask = 0x0080,
}, },
{ {
.name = "RGB24 (LE)",
.fourcc = V4L2_PIX_FMT_RGB24, /* rgb */ .fourcc = V4L2_PIX_FMT_RGB24, /* rgb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 24 }, .bit_depth = { 24 },
...@@ -319,7 +288,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -319,7 +288,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "RGB24 (BE)",
.fourcc = V4L2_PIX_FMT_BGR24, /* bgr */ .fourcc = V4L2_PIX_FMT_BGR24, /* bgr */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 24 }, .bit_depth = { 24 },
...@@ -327,7 +295,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -327,7 +295,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "BGR666",
.fourcc = V4L2_PIX_FMT_BGR666, /* bbbbbbgg ggggrrrr rrxxxxxx */ .fourcc = V4L2_PIX_FMT_BGR666, /* bbbbbbgg ggggrrrr rrxxxxxx */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 32 }, .bit_depth = { 32 },
...@@ -335,7 +302,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -335,7 +302,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "RGB32 (LE)",
.fourcc = V4L2_PIX_FMT_RGB32, /* xrgb */ .fourcc = V4L2_PIX_FMT_RGB32, /* xrgb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 32 }, .bit_depth = { 32 },
...@@ -343,7 +309,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -343,7 +309,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "RGB32 (BE)",
.fourcc = V4L2_PIX_FMT_BGR32, /* bgrx */ .fourcc = V4L2_PIX_FMT_BGR32, /* bgrx */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 32 }, .bit_depth = { 32 },
...@@ -351,7 +316,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -351,7 +316,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "XRGB32 (LE)",
.fourcc = V4L2_PIX_FMT_XRGB32, /* xrgb */ .fourcc = V4L2_PIX_FMT_XRGB32, /* xrgb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 32 }, .bit_depth = { 32 },
...@@ -359,7 +323,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -359,7 +323,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "XRGB32 (BE)",
.fourcc = V4L2_PIX_FMT_XBGR32, /* bgrx */ .fourcc = V4L2_PIX_FMT_XBGR32, /* bgrx */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 32 }, .bit_depth = { 32 },
...@@ -367,7 +330,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -367,7 +330,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "ARGB32 (LE)",
.fourcc = V4L2_PIX_FMT_ARGB32, /* argb */ .fourcc = V4L2_PIX_FMT_ARGB32, /* argb */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 32 }, .bit_depth = { 32 },
...@@ -376,7 +338,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -376,7 +338,6 @@ struct vivid_fmt vivid_formats[] = {
.alpha_mask = 0x000000ff, .alpha_mask = 0x000000ff,
}, },
{ {
.name = "ARGB32 (BE)",
.fourcc = V4L2_PIX_FMT_ABGR32, /* bgra */ .fourcc = V4L2_PIX_FMT_ABGR32, /* bgra */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 32 }, .bit_depth = { 32 },
...@@ -385,7 +346,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -385,7 +346,6 @@ struct vivid_fmt vivid_formats[] = {
.alpha_mask = 0xff000000, .alpha_mask = 0xff000000,
}, },
{ {
.name = "Bayer BG/GR",
.fourcc = V4L2_PIX_FMT_SBGGR8, /* Bayer BG/GR */ .fourcc = V4L2_PIX_FMT_SBGGR8, /* Bayer BG/GR */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 8 }, .bit_depth = { 8 },
...@@ -393,7 +353,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -393,7 +353,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "Bayer GB/RG",
.fourcc = V4L2_PIX_FMT_SGBRG8, /* Bayer GB/RG */ .fourcc = V4L2_PIX_FMT_SGBRG8, /* Bayer GB/RG */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 8 }, .bit_depth = { 8 },
...@@ -401,7 +360,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -401,7 +360,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "Bayer GR/BG",
.fourcc = V4L2_PIX_FMT_SGRBG8, /* Bayer GR/BG */ .fourcc = V4L2_PIX_FMT_SGRBG8, /* Bayer GR/BG */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 8 }, .bit_depth = { 8 },
...@@ -409,7 +367,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -409,7 +367,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "Bayer RG/GB",
.fourcc = V4L2_PIX_FMT_SRGGB8, /* Bayer RG/GB */ .fourcc = V4L2_PIX_FMT_SRGGB8, /* Bayer RG/GB */
.vdownsampling = { 1 }, .vdownsampling = { 1 },
.bit_depth = { 8 }, .bit_depth = { 8 },
...@@ -417,7 +374,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -417,7 +374,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 1, .buffers = 1,
}, },
{ {
.name = "4:2:2, biplanar, YUV",
.fourcc = V4L2_PIX_FMT_NV16M, .fourcc = V4L2_PIX_FMT_NV16M,
.vdownsampling = { 1, 1 }, .vdownsampling = { 1, 1 },
.bit_depth = { 8, 8 }, .bit_depth = { 8, 8 },
...@@ -427,7 +383,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -427,7 +383,6 @@ struct vivid_fmt vivid_formats[] = {
.data_offset = { PLANE0_DATA_OFFSET, 0 }, .data_offset = { PLANE0_DATA_OFFSET, 0 },
}, },
{ {
.name = "4:2:2, biplanar, YVU",
.fourcc = V4L2_PIX_FMT_NV61M, .fourcc = V4L2_PIX_FMT_NV61M,
.vdownsampling = { 1, 1 }, .vdownsampling = { 1, 1 },
.bit_depth = { 8, 8 }, .bit_depth = { 8, 8 },
...@@ -437,7 +392,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -437,7 +392,6 @@ struct vivid_fmt vivid_formats[] = {
.data_offset = { 0, PLANE0_DATA_OFFSET }, .data_offset = { 0, PLANE0_DATA_OFFSET },
}, },
{ {
.name = "4:2:0, triplanar, YUV",
.fourcc = V4L2_PIX_FMT_YUV420M, .fourcc = V4L2_PIX_FMT_YUV420M,
.vdownsampling = { 1, 2, 2 }, .vdownsampling = { 1, 2, 2 },
.bit_depth = { 8, 4, 4 }, .bit_depth = { 8, 4, 4 },
...@@ -446,7 +400,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -446,7 +400,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 3, .buffers = 3,
}, },
{ {
.name = "4:2:0, triplanar, YVU",
.fourcc = V4L2_PIX_FMT_YVU420M, .fourcc = V4L2_PIX_FMT_YVU420M,
.vdownsampling = { 1, 2, 2 }, .vdownsampling = { 1, 2, 2 },
.bit_depth = { 8, 4, 4 }, .bit_depth = { 8, 4, 4 },
...@@ -455,7 +408,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -455,7 +408,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 3, .buffers = 3,
}, },
{ {
.name = "4:2:0, biplanar, YUV",
.fourcc = V4L2_PIX_FMT_NV12M, .fourcc = V4L2_PIX_FMT_NV12M,
.vdownsampling = { 1, 2 }, .vdownsampling = { 1, 2 },
.bit_depth = { 8, 8 }, .bit_depth = { 8, 8 },
...@@ -464,7 +416,6 @@ struct vivid_fmt vivid_formats[] = { ...@@ -464,7 +416,6 @@ struct vivid_fmt vivid_formats[] = {
.buffers = 2, .buffers = 2,
}, },
{ {
.name = "4:2:0, biplanar, YVU",
.fourcc = V4L2_PIX_FMT_NV21M, .fourcc = V4L2_PIX_FMT_NV21M,
.vdownsampling = { 1, 2 }, .vdownsampling = { 1, 2 },
.bit_depth = { 8, 8 }, .bit_depth = { 8, 8 },
...@@ -750,7 +701,6 @@ int vivid_enum_fmt_vid(struct file *file, void *priv, ...@@ -750,7 +701,6 @@ int vivid_enum_fmt_vid(struct file *file, void *priv,
fmt = &vivid_formats[f->index]; fmt = &vivid_formats[f->index];
strlcpy(f->description, fmt->name, sizeof(f->description));
f->pixelformat = fmt->fourcc; f->pixelformat = fmt->fourcc;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment