File tree Expand file tree Collapse file tree 5 files changed +56
-0
lines changed Expand file tree Collapse file tree 5 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ .. _stm32-snippets :
2
+
3
+ STM32 snippets
4
+ ##############
5
+
6
+ .. toctree ::
7
+ :maxdepth: 1
8
+ :glob:
9
+
10
+ ** /*
Original file line number Diff line number Diff line change
1
+ .. _snippet-video-stm32-venc :
2
+
3
+ STM32 Video ENCoder (VENC) Snippet (video-stm32-venc)
4
+ #####################################################
5
+
6
+ .. code-block :: console
7
+
8
+ west build -S video-stm32-venc [...]
9
+
10
+ Overview
11
+ ********
12
+
13
+ This snippet instantiate the STM32 Video ENCoder (VENC) and set it
14
+ as ``zephyr,videoenc `` :ref: `devicetree ` chosen node.
15
+
16
+ Requirements
17
+ ************
18
+
19
+ The board must have the hardware support for the Video ENCoder (VENC).
Original file line number Diff line number Diff line change
1
+ name : video-stm32-venc
2
+ append :
3
+ EXTRA_DTC_OVERLAY_FILE : video-stm32-venc.overlay
4
+ EXTRA_CONF_FILE : video-stm32-venc.conf
Original file line number Diff line number Diff line change
1
+ # VENC output format
2
+ CONFIG_VIDEO_ENCODED_PIXEL_FORMAT="H264"
3
+
4
+ # Default frame size
5
+ CONFIG_VIDEO_FRAME_WIDTH=1920
6
+ CONFIG_VIDEO_FRAME_HEIGHT=1080
7
+
8
+ # VENC default input format
9
+ CONFIG_VIDEO_PIXEL_FORMAT="NV12"
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 STMicroelectronics
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ / {
7
+ chosen {
8
+ zephyr,videoenc = &venc;
9
+ };
10
+ };
11
+
12
+ &venc {
13
+ status = "okay";
14
+ };
You can’t perform that action at this time.
0 commit comments