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

Function sim_decoder_querycap

arch/sim/src/sim/sim_decoder.c:243–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static int sim_decoder_querycap(void *priv,
244 struct v4l2_capability *cap)
245{
246 strlcpy((char *)cap->driver, SIM_DECODER_NAME, sizeof(cap->driver));
247 strlcpy((char *)cap->card, SIM_DECODER_NAME, sizeof(cap->card));
248 cap->capabilities = V4L2_CAP_VIDEO_M2M;
249
250 return 0;
251}
252
253static int sim_decoder_capture_enum_fmt(void *priv,
254 struct v4l2_fmtdesc *f)

Callers

nothing calls this directly

Calls 1

strlcpyFunction · 0.50

Tested by

no test coverage detected