History

media: v4l: Add support for V4L2_BUF_TYPE_META_OUTPUT

The V4L2_BUF_TYPE_META_OUTPUT mirrors the V4L2_BUF_TYPE_META_CAPTURE with the exception that it is an OUTPUT type. The use case for this is to pass buffers to the device that are not image data but metadata. The formats, just as the metadata capture formats, are typically device specific and highly structured.

Sakari Ailus committed 9 years ago

Commit 72148d11 parent fa09d066 files · +53 −4Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/videodev2.h+2−0
@@ -145,6 +145,7 @@ enum v4l2_buf_type { · 144 unmodified lines
145145 V4L2_BUF_TYPE_SDR_CAPTURE = 11,
146146 V4L2_BUF_TYPE_SDR_OUTPUT = 12,
147147 V4L2_BUF_TYPE_META_CAPTURE = 13,
148+ V4L2_BUF_TYPE_META_OUTPUT = 14,
148149 /* Deprecated, do not use */
149150 V4L2_BUF_TYPE_PRIVATE = 0x80,
150151 };
@@ -469,6 +470,7 @@ struct v4l2_capability { · 318 unmodified lines
469470 #define V4L2_CAP_READWRITE 0x01000000 /* read/write systemcalls */
470471 #define V4L2_CAP_ASYNCIO 0x02000000 /* async I/O */
471472 #define V4L2_CAP_STREAMING 0x04000000 /* streaming I/O ioctls */
473+#define V4L2_CAP_META_OUTPUT 0x08000000 /* Is a metadata output device */
472474
473475 #define V4L2_CAP_TOUCH 0x10000000 /* Is a touch device */
474476

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