New IOCTL ops: vidioc_enum_fmt_sdr_out vidioc_g_fmt_sdr_out vidioc_s_fmt_sdr_out vidioc_try_fmt_sdr_out New vb2 buffertype: V4L2_BUF_TYPE_SDR_OUTPUT New v4l2 capability: V4L2_CAP_SDR_OUTPUT
Showing the changes to include (3 of 7 files). Show all
Unified · Split
| @@ -36,6 +36,8 @@ struct v4l2_ioctl_ops { · 35 unmodified lines | ||
| 36 | 36 | struct v4l2_fmtdesc *f); |
| 37 | 37 | int (*vidioc_enum_fmt_sdr_cap) (struct file *file, void *fh, |
| 38 | 38 | struct v4l2_fmtdesc *f); |
| 39 | + int (*vidioc_enum_fmt_sdr_out) (struct file *file, void *fh, | |
| 40 | + struct v4l2_fmtdesc *f); | |
| 39 | 41 | |
| 40 | 42 | /* VIDIOC_G_FMT handlers */ |
| 41 | 43 | int (*vidioc_g_fmt_vid_cap) (struct file *file, void *fh, |
| @@ -60,6 +62,8 @@ struct v4l2_ioctl_ops { · 18 unmodified lines | ||
| 60 | 62 | struct v4l2_format *f); |
| 61 | 63 | int (*vidioc_g_fmt_sdr_cap) (struct file *file, void *fh, |
| 62 | 64 | struct v4l2_format *f); |
| 65 | + int (*vidioc_g_fmt_sdr_out) (struct file *file, void *fh, | |
| 66 | + struct v4l2_format *f); | |
| 63 | 67 | |
| 64 | 68 | /* VIDIOC_S_FMT handlers */ |
| 65 | 69 | int (*vidioc_s_fmt_vid_cap) (struct file *file, void *fh, |
| @@ -84,6 +88,8 @@ struct v4l2_ioctl_ops { · 18 unmodified lines | ||
| 84 | 88 | struct v4l2_format *f); |
| 85 | 89 | int (*vidioc_s_fmt_sdr_cap) (struct file *file, void *fh, |
| 86 | 90 | struct v4l2_format *f); |
| 91 | + int (*vidioc_s_fmt_sdr_out) (struct file *file, void *fh, | |
| 92 | + struct v4l2_format *f); | |
| 87 | 93 | |
| 88 | 94 | /* VIDIOC_TRY_FMT handlers */ |
| 89 | 95 | int (*vidioc_try_fmt_vid_cap) (struct file *file, void *fh, |
| @@ -108,6 +114,8 @@ struct v4l2_ioctl_ops { · 18 unmodified lines | ||
| 108 | 114 | struct v4l2_format *f); |
| 109 | 115 | int (*vidioc_try_fmt_sdr_cap) (struct file *file, void *fh, |
| 110 | 116 | struct v4l2_format *f); |
| 117 | + int (*vidioc_try_fmt_sdr_out) (struct file *file, void *fh, | |
| 118 | + struct v4l2_format *f); | |
| 111 | 119 | |
| 112 | 120 | /* Buffer handlers */ |
| 113 | 121 | int (*vidioc_reqbufs) (struct file *file, void *fh, struct v4l2_requestbuffers *b); |
| @@ -28,6 +28,7 @@ · 27 unmodified lines | ||
| 28 | 28 | EM( V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, "VIDEO_CAPTURE_MPLANE" ) \ |
| 29 | 29 | EM( V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, "VIDEO_OUTPUT_MPLANE" ) \ |
| 30 | 30 | EM( V4L2_BUF_TYPE_SDR_CAPTURE, "SDR_CAPTURE" ) \ |
| 31 | + EM( V4L2_BUF_TYPE_SDR_OUTPUT, "SDR_OUTPUT" ) \ | |
| 31 | 32 | EMe(V4L2_BUF_TYPE_PRIVATE, "PRIVATE" ) |
| 32 | 33 | |
| 33 | 34 | SHOW_TYPE |
| @@ -145,6 +145,7 @@ enum v4l2_buf_type { · 144 unmodified lines | ||
| 145 | 145 | V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE = 9, |
| 146 | 146 | V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE = 10, |
| 147 | 147 | V4L2_BUF_TYPE_SDR_CAPTURE = 11, |
| 148 | + V4L2_BUF_TYPE_SDR_OUTPUT = 12, | |
| 148 | 149 | /* Deprecated, do not use */ |
| 149 | 150 | V4L2_BUF_TYPE_PRIVATE = 0x80, |
| 150 | 151 | }; |
| @@ -159,7 +160,8 @@ enum v4l2_buf_type { · 8 unmodified lines | ||
| 159 | 160 | || (type) == V4L2_BUF_TYPE_VIDEO_OVERLAY \ |
| 160 | 161 | || (type) == V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY \ |
| 161 | 162 | || (type) == V4L2_BUF_TYPE_VBI_OUTPUT \ |
| 162 | − || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) | |
| 163 | + || (type) == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT \ | |
| 164 | + || (type) == V4L2_BUF_TYPE_SDR_OUTPUT) | |
| 163 | 165 | |
| 164 | 166 | enum v4l2_tuner_type { |
| 165 | 167 | V4L2_TUNER_RADIO = 1, |
| @@ -435,6 +437,7 @@ struct v4l2_capability { · 269 unmodified lines | ||
| 435 | 437 | |
| 436 | 438 | #define V4L2_CAP_SDR_CAPTURE 0x00100000 /* Is a SDR capture device */ |
| 437 | 439 | #define V4L2_CAP_EXT_PIX_FORMAT 0x00200000 /* Supports the extended pixel format */ |
| 440 | +#define V4L2_CAP_SDR_OUTPUT 0x00400000 /* Is a SDR output device */ | |
| 438 | 441 | |
| 439 | 442 | #define V4L2_CAP_READWRITE 0x01000000 /* read/write systemcalls */ |
| 440 | 443 | #define V4L2_CAP_ASYNCIO 0x02000000 /* async I/O */ |