Skip to content

Commit c652436

Browse files
author
bijunda
committed
sim: support camera framework multi-instance and dynamic mounting
Allow the SIM camera/V4L2 capture framework to manage multiple imgdata instances with dynamic mounting. This avoids cross-talk between camera streams when multiple devices are used. Signed-off-by: Peter Bee <bijunda@bytedance.com>
1 parent 3f16c4a commit c652436

8 files changed

Lines changed: 598 additions & 86 deletions

File tree

arch/sim/Kconfig

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,20 +406,21 @@ if SIM_CAMERA
406406

407407
choice
408408
prompt "Simulated camera device type"
409-
default SIM_CAMERA_V4L2
409+
default SIM_CAMERA_V4L2 if HOST_LINUX
410+
default SIM_CAMERA_AVFOUNDATION if HOST_MACOS
410411

411412
config SIM_CAMERA_V4L2
412413
bool "V4L2 camera support on sim"
413414
depends on HOST_LINUX
414415

415-
endchoice
416+
config SIM_CAMERA_AVFOUNDATION
417+
bool "AVFoundation camera support on sim"
418+
depends on HOST_MACOS
416419

417-
config HOST_CAMERA_DEV_PATH
418-
string "Host camera device path"
419-
default "/dev/video0"
420+
endchoice
420421

421422
config SIM_CAMERA_DEV_PATH
422-
string "NuttX video device path"
423+
string "NuttX video device path prefix"
423424
default "/dev/video"
424425

425426
endif

0 commit comments

Comments
 (0)