linux/drivers/media/platform
Mauro Carvalho Chehab c8af44e1e7 media: vim2m: use different framesizes for bayer formats
The only real restriction at vim2m is that width should be
multiple of two, as the copy routine always copy two pixels
each time.

However, Bayer formats are defined as having a 2x2 matrix.
So, odd vertical numbers would cause color distortions at the
last line. So, it makes sense to use step 2 for vertical alignment
on Bayer.

With this patch, the reported formats for video capture will
be:

	[0]: 'RGBP' (16-bit RGB 5-6-5)
		Size: Stepwise 32x32 - 640x480 with step 2/1
	[1]: 'RGBR' (16-bit RGB 5-6-5 BE)
		Size: Stepwise 32x32 - 640x480 with step 2/1
	[2]: 'RGB3' (24-bit RGB 8-8-8)
		Size: Stepwise 32x32 - 640x480 with step 2/1
	[3]: 'BGR3' (24-bit BGR 8-8-8)
		Size: Stepwise 32x32 - 640x480 with step 2/1
	[4]: 'YUYV' (YUYV 4:2:2)
		Size: Stepwise 32x32 - 640x480 with step 2/1
	[5]: 'BA81' (8-bit Bayer BGBG/GRGR)
		Size: Stepwise 32x32 - 640x480 with step 2/2
	[6]: 'GBRG' (8-bit Bayer GBGB/RGRG)
		Size: Stepwise 32x32 - 640x480 with step 2/2
	[7]: 'GRBG' (8-bit Bayer GRGR/BGBG)
		Size: Stepwise 32x32 - 640x480 with step 2/2
	[8]: 'RGGB' (8-bit Bayer RGRG/GBGB)
		Size: Stepwise 32x32 - 640x480 with step 2/2

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-03-01 11:06:49 -05:00
..
am437x media: vidioc_cropcap -> vidioc_g_pixelaspect 2018-11-20 13:57:21 -05:00
atmel media: platform: fix several typos 2019-03-01 09:35:21 -05:00
cadence media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
cec-gpio media: cec-gpio: support 5v testing 2018-07-25 07:12:36 -04:00
coda media: platform: fix several typos 2019-03-01 09:35:21 -05:00
cros-ec-cec media: platform: Add ChromeOS EC CEC driver 2018-07-13 08:44:46 +01:00
davinci media: platform: fix several typos 2019-03-01 09:35:21 -05:00
exynos4-is media: platform: fix several typos 2019-03-01 09:35:21 -05:00
exynos-gsc media: exynos-gsc: replace v4l2_crop by v4l2_selection 2018-11-20 13:46:06 -05:00
marvell-ccic media: platform: fix several typos 2019-03-01 09:35:21 -05:00
meson media: platform: meson-ao-cec: make busy TX warning silent 2018-07-24 17:52:20 -04:00
mtk-jpeg media: mtk-jpeg: Correct return type for mem2mem buffer helpers 2019-02-18 15:28:43 -05:00
mtk-mdp media: platform: fix several typos 2019-03-01 09:35:21 -05:00
mtk-vcodec media: platform: fix several typos 2019-03-01 09:35:21 -05:00
mtk-vpu mm: convert totalram_pages and totalhigh_pages variables to atomic 2018-12-28 12:11:47 -08:00
omap media: platform: fix several typos 2019-03-01 09:35:21 -05:00
omap3isp media: platform: fix several typos 2019-03-01 09:35:21 -05:00
qcom media: platform: fix several typos 2019-03-01 09:35:21 -05:00
rcar-vin media: platform: fix several typos 2019-03-01 09:35:21 -05:00
rockchip/rga media: platform: fix several typos 2019-03-01 09:35:21 -05:00
s3c-camif media: platform: fix several typos 2019-03-01 09:35:21 -05:00
s5p-cec media: s5p-cec: add NACK detection support 2017-09-23 07:29:30 -04:00
s5p-g2d media: s5p-g2d: Correct return type for mem2mem buffer helpers 2019-02-18 15:30:45 -05:00
s5p-jpeg media: platform: fix several typos 2019-03-01 09:35:21 -05:00
s5p-mfc media: platform: fix several typos 2019-03-01 09:35:21 -05:00
seco-cec media: secocec: fix ir address shift 2019-01-16 11:44:50 -05:00
sti media: platform: fix several typos 2019-03-01 09:35:21 -05:00
stm32 media: platform: fix several typos 2019-03-01 09:35:21 -05:00
sunxi/sun6i-csi media: platform: fix several typos 2019-03-01 09:35:21 -05:00
tegra-cec media: tegra-cec: reset rx_buf_cnt when start bit detected 2018-03-05 07:46:24 -05:00
ti-vpe media: a few more typos at staging, pci, platform, radio and usb 2019-03-01 10:02:25 -05:00
vicodec media: vicodec: Add a flag for I-frames in fwht header 2019-02-18 15:36:23 -05:00
vimc media: vimc: fix memory leak 2019-02-18 12:32:21 -05:00
vivid media: vivid: Add definitions for the 32-bit packed YUV formats 2019-02-18 14:32:42 -05:00
vsp1 media: platform: fix several typos 2019-03-01 09:35:21 -05:00
xilinx media: platform: fix several typos 2019-03-01 09:35:21 -05:00
aspeed-video.c media: platform: Fix missing spin_lock_init() 2019-01-07 13:54:01 -05:00
fsl-viu.c media: videobuf: use u64 for the timestamp internally 2019-02-07 12:11:19 -05:00
imx-pxp.c media: imx-pxp: Start using the format VUYA32 instead of YUV32 (v2) 2019-02-18 14:34:47 -05:00
imx-pxp.h media: imx-pxp: add i.MX Pixel Pipeline driver 2018-09-11 13:32:17 -04:00
Kconfig media: platform: fix several typos 2019-03-01 09:35:21 -05:00
m2m-deinterlace.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
Makefile media: soc_camera: Move to the staging tree 2019-02-18 12:09:19 -05:00
mx2_emmaprp.c media: mx2_emmaprp: Correct return type for mem2mem buffer helpers 2019-02-18 15:30:02 -05:00
pxa_camera.c media: platform: fix several typos 2019-03-01 09:35:21 -05:00
rcar_drif.c media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
rcar_fdp1.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
rcar_jpu.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
rcar-fcp.c Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07:00
renesas-ceu.c media: renesas-ceu: Use default mbus settings 2018-10-04 16:25:33 -04:00
sh_veu.c media: sh_veu: Correct return type for mem2mem buffer helpers 2019-02-18 15:31:28 -05:00
sh_vou.c media: doc-rst: Fix broken references 2018-11-23 05:42:49 -05:00
via-camera.c media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
via-camera.h media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
video-mux.c media: video-mux: add bayer formats 2019-02-18 15:59:00 -05:00
vim2m.c media: vim2m: use different framesizes for bayer formats 2019-03-01 11:06:49 -05:00