History

[media] v4l: add Mediatek compressed video block format

Add V4L2_PIX_FMT_MT21C format used on MT8173 driver. It is compressed format and need MT8173 MDP driver to transfer to other standard format.

Tiffany Lin committed 10 years ago

Commit d4de6631 parent 211eba92 files · +2 −0Browse files

Unified · Split

2 files
  1. drivers/media/v4l2-core/v4l2-ioctl.c +1 −0
  2. include/uapi/linux/videodev2.h +1 −0
drivers/media/v4l2-core/v4l2-ioctl.c+1−0
@@ -1249,6 +1249,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) · 1248 unmodified lines
1249 case V4L2_PIX_FMT_JPGL: descr = "JPEG Lite"; break;1249 case V4L2_PIX_FMT_JPGL: descr = "JPEG Lite"; break;
1250 case V4L2_PIX_FMT_SE401: descr = "GSPCA SE401"; break;1250 case V4L2_PIX_FMT_SE401: descr = "GSPCA SE401"; break;
1251 case V4L2_PIX_FMT_S5C_UYVY_JPG: descr = "S5C73MX interleaved UYVY/JPEG"; break;1251 case V4L2_PIX_FMT_S5C_UYVY_JPG: descr = "S5C73MX interleaved UYVY/JPEG"; break;
1252 case V4L2_PIX_FMT_MT21C: descr = "Mediatek Compressed Format"; break;
1252 default:1253 default:
1253 WARN(1, "Unknown pixelformat 0x%08x\n", fmt->pixelformat);1254 WARN(1, "Unknown pixelformat 0x%08x\n", fmt->pixelformat);
1254 if (fmt->description[0])1255 if (fmt->description[0])
include/uapi/linux/videodev2.h+1−0
@@ -635,6 +635,7 @@ struct v4l2_pix_format { · 634 unmodified lines
635#define V4L2_PIX_FMT_Y8I v4l2_fourcc('Y', '8', 'I', ' ') /* Greyscale 8-bit L/R interleaved */635#define V4L2_PIX_FMT_Y8I v4l2_fourcc('Y', '8', 'I', ' ') /* Greyscale 8-bit L/R interleaved */
636#define V4L2_PIX_FMT_Y12I v4l2_fourcc('Y', '1', '2', 'I') /* Greyscale 12-bit L/R interleaved */636#define V4L2_PIX_FMT_Y12I v4l2_fourcc('Y', '1', '2', 'I') /* Greyscale 12-bit L/R interleaved */
637#define V4L2_PIX_FMT_Z16 v4l2_fourcc('Z', '1', '6', ' ') /* Depth data 16-bit */637#define V4L2_PIX_FMT_Z16 v4l2_fourcc('Z', '1', '6', ' ') /* Depth data 16-bit */
638#define V4L2_PIX_FMT_MT21C v4l2_fourcc('M', 'T', '2', '1') /* Mediatek compressed block mode */
638 639
639/* SDR formats - used only for Software Defined Radio devices */640/* SDR formats - used only for Software Defined Radio devices */
640#define V4L2_SDR_FMT_CU8 v4l2_fourcc('C', 'U', '0', '8') /* IQ u8 */641#define V4L2_SDR_FMT_CU8 v4l2_fourcc('C', 'U', '0', '8') /* IQ u8 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t