Skip to content

Commit 4ac3514

Browse files
committed
drivers: video: sw_pipeline: perform custom pixel stream processing
Introduce a connector between the lib/pixel API to the drivers/video API. An function loads a lib/pixel stream into this new driver, then the driver will load the frames in and out of this stream. Signed-off-by: Josuah Demangeon <me@josuah.net>
1 parent 02aa070 commit 4ac3514

18 files changed

+887
-0
lines changed

drivers/video/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ zephyr_library_sources(video_device.c)
99
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI video_mcux_csi.c)
1010
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_MIPI_CSI2RX video_mcux_mipi_csi2rx.c)
1111
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_GENERATOR video_sw_generator.c)
12+
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_PIPELINE video_sw_pipeline.c)
1213
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 mt9m114.c)
1314
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 ov7725.c)
1415
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV2640 ov2640.c)

drivers/video/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ source "drivers/video/Kconfig.mcux_mipi_csi2rx"
5858

5959
source "drivers/video/Kconfig.sw_generator"
6060

61+
source "drivers/video/Kconfig.sw_pipeline"
62+
6163
source "drivers/video/Kconfig.mt9m114"
6264

6365
source "drivers/video/Kconfig.ov7725"

drivers/video/Kconfig.sw_pipeline

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2025 tinyVision.ai
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config VIDEO_SW_PIPELINE
5+
bool "Video Software Pipeline"
6+
depends on DT_HAS_ZEPHYR_VIDEO_SW_PIPELINE_ENABLED
7+
default y
8+
help
9+
Enable the video stream processing based on the lib/pixel.
10+
11+
config VIDEO_SW_PIPELINE_THREAD_PRIORITY
12+
int "Video Software Pipeline thread priority"
13+
default 2
14+
depends on VIDEO_SW_PIPELINE
15+
help
16+
The Video Software Pipeline has a thread in which video frames are processed.
17+
This options sets the priority of that thread.
18+
The default is some arbitrary value above 0.

0 commit comments

Comments
 (0)