Skip to content

Commit ff6694a

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 db41d36 commit ff6694a

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
@@ -7,6 +7,7 @@ zephyr_library_sources(video_common.c)
77
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI video_mcux_csi.c)
88
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_MIPI_CSI2RX video_mcux_mipi_csi2rx.c)
99
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_GENERATOR video_sw_generator.c)
10+
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_PIPELINE video_sw_pipeline.c)
1011
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 mt9m114.c)
1112
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 ov7725.c)
1213
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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
help
15+
The Video Software Pipeline has a thread in which video frames are processed.
16+
This options sets the priority of that thread.
17+
The default is some arbitrary value above 0.

0 commit comments

Comments
 (0)