diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-07-11 12:21:11 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-08-19 13:50:05 +0200 |
commit | 6bc7643d1b9cf131f6ef98082548dec83f753fb8 (patch) | |
tree | 48670a58c8c5e97f4c9f5d3f82b5def7b3f16634 /drivers/media/test-drivers/vivid/vivid-core.h | |
parent | 43cc0ec38131c10557c771760ffdfdb74a2da155 (diff) | |
download | linux-stable-6bc7643d1b9cf131f6ef98082548dec83f753fb8.tar.gz linux-stable-6bc7643d1b9cf131f6ef98082548dec83f753fb8.tar.bz2 linux-stable-6bc7643d1b9cf131f6ef98082548dec83f753fb8.zip |
media: vivid: add pixel_array test control
This control will change dimensions according to the source resolution.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/test-drivers/vivid/vivid-core.h')
-rw-r--r-- | drivers/media/test-drivers/vivid/vivid-core.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/test-drivers/vivid/vivid-core.h b/drivers/media/test-drivers/vivid/vivid-core.h index 176b72cb143b..bfcfb3515901 100644 --- a/drivers/media/test-drivers/vivid/vivid-core.h +++ b/drivers/media/test-drivers/vivid/vivid-core.h @@ -35,7 +35,9 @@ #define MAX_HEIGHT 2160 /* The minimum image width/height */ #define MIN_WIDTH 16 -#define MIN_HEIGHT 16 +#define MIN_HEIGHT MIN_WIDTH +/* Pixel Array control divider */ +#define PIXEL_ARRAY_DIV MIN_WIDTH /* The data_offset of plane 0 for the multiplanar formats */ #define PLANE0_DATA_OFFSET 128 @@ -227,6 +229,7 @@ struct vivid_dev { struct v4l2_ctrl *bitmask; struct v4l2_ctrl *int_menu; struct v4l2_ctrl *ro_int32; + struct v4l2_ctrl *pixel_array; struct v4l2_ctrl *test_pattern; struct v4l2_ctrl *colorspace; struct v4l2_ctrl *rgb_range_cap; |