nuttx-apps/examples/uvc_cam/Kconfig
wangjianyu3 073df9d1de examples/uvc_cam: add UVC camera streaming app
Usage: uvc_cam [nframes] [video_dev] [uvc_dev]

V4L2 capture -> write UVC gadget device.
Uses boardctl to initialize/deinitialize UVC gadget.
Queries sensor pixel format, resolution and frame rate via V4L2.
Uses poll() to wait for USB host streaming state.
Supports optional device path arguments (default /dev/video0, /dev/uvc0).
Supports configurable frame count (0=infinite).

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-03-30 14:52:06 +08:00

32 lines
666 B
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_UVC_CAM
tristate "UVC Camera streaming example"
default n
depends on USBUVC && VIDEO
---help---
Captures frames from V4L2 camera and streams to USB host
via UVC gadget driver (/dev/uvc0).
if EXAMPLES_UVC_CAM
config EXAMPLES_UVC_CAM_PROGNAME
string "Program name"
default "uvc_cam"
config EXAMPLES_UVC_CAM_PRIORITY
int "Task priority"
default 100
config EXAMPLES_UVC_CAM_STACKSIZE
int "Stack size"
default 4096
config EXAMPLES_UVC_CAM_NFRAMES
int "Number of frames (0=infinite)"
default 0
endif