]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
include/linux: Add new packed v4l2 pixel format
authorBhanu Murthy V <bmurthyv@nvidia.com>
Mon, 30 Jan 2017 22:25:08 +0000 (14:25 -0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 13 Feb 2017 03:15:09 +0000 (19:15 -0800)
commit6b6f2809a4188180838a02e28628edf03d76c5b5
tree64a12ac0febe2cc0b727ec469141536126d4e837
parentfc369120cdb98f2cdc34a622a93efea63288616b
include/linux: Add new packed v4l2 pixel format

Add pacekd 10-bit formats to v4l2 pixel formats list.
X(Bayer)10 packs 3 pixels to 4 bytes with two MSB bits
set to zero. All four corresponding phases are added.

Snapshot of packing different bayer formats below:
BGGR10 - X2B10G10B10 X2G10B10G10.. X2G10R10G10 X2R10G10R10..
RGGB10 - X2R10G10R10 X2G10R10G10.. X2G10B10G10 X2B10G10B10..
GRGB10 - X2G10R10G10 X2R10G10R10.. X2G10B10G10 X2B10G10B10..
GBGR10 - X2G10B10G10 X2B10G10B10.. X2G10R10G10 X2R10G10R10..

In general if the pixels are L0L1L2L3L4L5.., the packed
32-bit integers would be X2L2L1L0 X2L5L4L3..

Add corresponding MBUS formats to represent packed 10bit.

Jira: CHWI-800

Change-Id: I5f1f9d98699b5e2b40c909184c6505593ad96380
Reviewed-on: http://git-master/r/1296189
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/media/v4l2-core/v4l2-ioctl.c
include/uapi/linux/media-bus-format.h
include/uapi/linux/videodev2.h