The V4L2_PIX_FMT_SUNXI_TILED_NV12 format is actually a fairly common NV12 tiled format, with 32x32 linear tiles. Rename the format and move its documentation together with the other tiled NV12 formats. Keep V4L2_PIX_FMT_SUNXI_TILED_NV12 for application compatibility.
Showing the changes to include/uapi (1 of 8 files). Show all
Unified · Split
| @@ -627,6 +627,9 @@ struct v4l2_pix_format { · 626 unmodified lines | ||
| 627 | 627 | #define V4L2_PIX_FMT_YUV444M v4l2_fourcc('Y', 'M', '2', '4') /* 24 YUV444 planar */ |
| 628 | 628 | #define V4L2_PIX_FMT_YVU444M v4l2_fourcc('Y', 'M', '4', '2') /* 24 YVU444 planar */ |
| 629 | 629 | |
| 630 | +/* Tiled YUV formats */ | |
| 631 | +#define V4L2_PIX_FMT_NV12_32L32 v4l2_fourcc('S', 'T', '1', '2') /* 12 Y/CbCr 4:2:0 32x32 tiles */ | |
| 632 | + | |
| 630 | 633 | /* Bayer formats - see http://www.siliconimaging.com/RGB%20Bayer.htm */ |
| 631 | 634 | #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B', 'A', '8', '1') /* 8 BGBG.. GRGR.. */ |
| 632 | 635 | #define V4L2_PIX_FMT_SGBRG8 v4l2_fourcc('G', 'B', 'R', 'G') /* 8 GBGB.. RGRG.. */ |
| @@ -734,7 +737,6 @@ struct v4l2_pix_format { · 101 unmodified lines | ||
| 734 | 737 | #define V4L2_PIX_FMT_Z16 v4l2_fourcc('Z', '1', '6', ' ') /* Depth data 16-bit */ |
| 735 | 738 | #define V4L2_PIX_FMT_MT21C v4l2_fourcc('M', 'T', '2', '1') /* Mediatek compressed block mode */ |
| 736 | 739 | #define V4L2_PIX_FMT_INZI v4l2_fourcc('I', 'N', 'Z', 'I') /* Intel Planar Greyscale 10-bit and Depth 16-bit */ |
| 737 | −#define V4L2_PIX_FMT_SUNXI_TILED_NV12 v4l2_fourcc('S', 'T', '1', '2') /* Sunxi Tiled NV12 Format */ | |
| 738 | 740 | #define V4L2_PIX_FMT_CNF4 v4l2_fourcc('C', 'N', 'F', '4') /* Intel 4-bit packed depth confidence information */ |
| 739 | 741 | #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4') /* BTTV 8-bit dithered RGB */ |
| 740 | 742 | |
| @@ -2615,4 +2617,9 @@ struct v4l2_create_buffers { · 1874 unmodified lines | ||
| 2615 | 2617 | |
| 2616 | 2618 | #define BASE_VIDIOC_PRIVATE 192 /* 192-255 are private */ |
| 2617 | 2619 | |
| 2620 | +/* Deprecated definitions kept for backwards compatibility */ | |
| 2621 | +#ifndef __KERNEL__ | |
| 2622 | +#define V4L2_PIX_FMT_SUNXI_TILED_NV12 V4L2_PIX_FMT_NV12_32L32 | |
| 2623 | +#endif | |
| 2624 | + | |
| 2618 | 2625 | #endif /* _UAPI__LINUX_VIDEODEV2_H */ |