| 281 | } |
| 282 | |
| 283 | static std::optional<v4l2_capability> get_capabilities( |
| 284 | std::unique_ptr<openhd::v4l2::V4l2FPHolder> &v4l2_fp_holder) { |
| 285 | struct v4l2_capability caps = {}; |
| 286 | if (ioctl(v4l2_fp_holder->fd, VIDIOC_QUERYCAP, &caps) == -1) { |
| 287 | return std::nullopt; |
| 288 | } |
| 289 | return caps; |
| 290 | } |
| 291 | |
| 292 | struct EndpointFormat { |
| 293 | // pixel format as string, never empty |