MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / get_capabilities

Function get_capabilities

OpenHD/ohd_video/src/camera_discovery.cpp:283–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283static 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
292struct EndpointFormat {
293 // pixel format as string, never empty

Callers 1

probe_v4l2_deviceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected