mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 20:06:43 +07:00
media: vicodec: Add num_planes field to v4l2_fwht_pixfmt_info
Add the field 'num_planes' to 'v4l2_fwht_pixfmt_info' struct. Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
49179ff480
commit
8c1d02f140
@ -11,30 +11,30 @@
|
||||
#include "codec-v4l2-fwht.h"
|
||||
|
||||
static const struct v4l2_fwht_pixfmt_info v4l2_fwht_pixfmts[] = {
|
||||
{ V4L2_PIX_FMT_YUV420, 1, 3, 2, 1, 1, 2, 2, 3},
|
||||
{ V4L2_PIX_FMT_YVU420, 1, 3, 2, 1, 1, 2, 2, 3},
|
||||
{ V4L2_PIX_FMT_YUV422P, 1, 2, 1, 1, 1, 2, 1, 3},
|
||||
{ V4L2_PIX_FMT_NV12, 1, 3, 2, 1, 2, 2, 2, 3},
|
||||
{ V4L2_PIX_FMT_NV21, 1, 3, 2, 1, 2, 2, 2, 3},
|
||||
{ V4L2_PIX_FMT_NV16, 1, 2, 1, 1, 2, 2, 1, 3},
|
||||
{ V4L2_PIX_FMT_NV61, 1, 2, 1, 1, 2, 2, 1, 3},
|
||||
{ V4L2_PIX_FMT_NV24, 1, 3, 1, 1, 2, 1, 1, 3},
|
||||
{ V4L2_PIX_FMT_NV42, 1, 3, 1, 1, 2, 1, 1, 3},
|
||||
{ V4L2_PIX_FMT_YUYV, 2, 2, 1, 2, 4, 2, 1, 3},
|
||||
{ V4L2_PIX_FMT_YVYU, 2, 2, 1, 2, 4, 2, 1, 3},
|
||||
{ V4L2_PIX_FMT_UYVY, 2, 2, 1, 2, 4, 2, 1, 3},
|
||||
{ V4L2_PIX_FMT_VYUY, 2, 2, 1, 2, 4, 2, 1, 3},
|
||||
{ V4L2_PIX_FMT_BGR24, 3, 3, 1, 3, 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 4, 2, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_YVYU, 2, 2, 1, 2, 4, 2, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_UYVY, 2, 2, 1, 2, 4, 2, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_VYUY, 2, 2, 1, 2, 4, 2, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_BGR24, 3, 3, 1, 3, 3, 1, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_RGB24, 3, 3, 1, 3, 3, 1, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_HSV24, 3, 3, 1, 3, 3, 1, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_BGR32, 4, 4, 1, 4, 4, 1, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_XBGR32, 4, 4, 1, 4, 4, 1, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_RGB32, 4, 4, 1, 4, 4, 1, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_XRGB32, 4, 4, 1, 4, 4, 1, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_HSV32, 4, 4, 1, 4, 4, 1, 1, 3, 1},
|
||||
{ V4L2_PIX_FMT_ARGB32, 4, 4, 1, 4, 4, 1, 1, 4, 1},
|
||||
{ V4L2_PIX_FMT_ABGR32, 4, 4, 1, 4, 4, 1, 1, 4, 1},
|
||||
{ V4L2_PIX_FMT_GREY, 1, 1, 1, 1, 0, 1, 1, 1, 1},
|
||||
};
|
||||
|
||||
const struct v4l2_fwht_pixfmt_info *v4l2_fwht_find_pixfmt(u32 pixelformat)
|
||||
|
@ -19,6 +19,7 @@ struct v4l2_fwht_pixfmt_info {
|
||||
unsigned int width_div;
|
||||
unsigned int height_div;
|
||||
unsigned int components_num;
|
||||
unsigned int planes_num;
|
||||
};
|
||||
|
||||
struct v4l2_fwht_state {
|
||||
|
@ -61,7 +61,7 @@ struct pixfmt_info {
|
||||
};
|
||||
|
||||
static const struct v4l2_fwht_pixfmt_info pixfmt_fwht = {
|
||||
V4L2_PIX_FMT_FWHT, 0, 3, 1, 1, 1, 1, 1, 0
|
||||
V4L2_PIX_FMT_FWHT, 0, 3, 1, 1, 1, 1, 1, 0, 1
|
||||
};
|
||||
|
||||
static void vicodec_dev_release(struct device *dev)
|
||||
|
Loading…
Reference in New Issue
Block a user