MCPcopy Create free account
hub / github.com/apache/nuttx / sim_encoder_querycap

Function sim_encoder_querycap

arch/sim/src/sim/sim_encoder.c:252–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252static int sim_encoder_querycap(void *priv,
253 struct v4l2_capability *cap)
254{
255 strncpy((char *)cap->driver, SIM_ENCODER_NAME, sizeof(cap->driver));
256 strncpy((char *)cap->card, SIM_ENCODER_NAME, sizeof(cap->card));
257 cap->capabilities = V4L2_CAP_VIDEO_M2M;
258
259 return 0;
260}
261
262static int sim_encoder_capture_enum_fmt(void *priv,
263 struct v4l2_fmtdesc *fmt)

Callers

nothing calls this directly

Calls 1

strncpyFunction · 0.50

Tested by

no test coverage detected