The V4L2_PIX_FMT_HM12 format is actually a simple NV12 tiled format, with 16x16 linear tiles. Rename the format and move its documentation together with the other tiled NV12 formats. Keep V4L2_PIX_FMT_HM12 for application compatibility.
Showing the changes to include/uapi (1 of 13 files). Show all
Unified · Split
| @@ -601,7 +601,6 @@ struct v4l2_pix_format { · 600 unmodified lines | ||
| 601 | 601 | #define V4L2_PIX_FMT_NV61 v4l2_fourcc('N', 'V', '6', '1') /* 16 Y/CrCb 4:2:2 */ |
| 602 | 602 | #define V4L2_PIX_FMT_NV24 v4l2_fourcc('N', 'V', '2', '4') /* 24 Y/CbCr 4:4:4 */ |
| 603 | 603 | #define V4L2_PIX_FMT_NV42 v4l2_fourcc('N', 'V', '4', '2') /* 24 Y/CrCb 4:4:4 */ |
| 604 | −#define V4L2_PIX_FMT_HM12 v4l2_fourcc('H', 'M', '1', '2') /* 8 YUV 4:2:0 16x16 macroblocks */ | |
| 605 | 604 | |
| 606 | 605 | /* two non contiguous planes - one Y, one Cr + Cb interleaved */ |
| 607 | 606 | #define V4L2_PIX_FMT_NV12M v4l2_fourcc('N', 'M', '1', '2') /* 12 Y/CbCr 4:2:0 */ |
| @@ -628,6 +627,7 @@ struct v4l2_pix_format { · 20 unmodified lines | ||
| 628 | 627 | #define V4L2_PIX_FMT_YVU444M v4l2_fourcc('Y', 'M', '4', '2') /* 24 YVU444 planar */ |
| 629 | 628 | |
| 630 | 629 | /* Tiled YUV formats */ |
| 630 | +#define V4L2_PIX_FMT_NV12_16L16 v4l2_fourcc('H', 'M', '1', '2') /* 12 Y/CbCr 4:2:0 16x16 tiles */ | |
| 631 | 631 | #define V4L2_PIX_FMT_NV12_32L32 v4l2_fourcc('S', 'T', '1', '2') /* 12 Y/CbCr 4:2:0 32x32 tiles */ |
| 632 | 632 | |
| 633 | 633 | /* Bayer formats - see http://www.siliconimaging.com/RGB%20Bayer.htm */ |
| @@ -2619,6 +2619,7 @@ struct v4l2_create_buffers { · 1985 unmodified lines | ||
| 2619 | 2619 | |
| 2620 | 2620 | /* Deprecated definitions kept for backwards compatibility */ |
| 2621 | 2621 | #ifndef __KERNEL__ |
| 2622 | +#define V4L2_PIX_FMT_HM12 V4L2_PIX_FMT_NV12_16L16 | |
| 2622 | 2623 | #define V4L2_PIX_FMT_SUNXI_TILED_NV12 V4L2_PIX_FMT_NV12_32L32 |
| 2623 | 2624 | #endif |
| 2624 | 2625 | |