feat(ppa): add PPA FreeType font compositing example

This commit is contained in:
morris
2026-08-18 19:00:26 +08:00
parent 9150d065a3
commit d3d0cbc594
18 changed files with 675 additions and 100 deletions
+2 -1
View File
@@ -175,8 +175,9 @@ The PPA operations are acted on the target block of an input picture. Therefore,
Application Examples
^^^^^^^^^^^^^^^^^^^^
* :example:`peripherals/ppa/ppa_transform` - PPA transform image processing example. The embedded RGB565 image is transformed by SRM, highlighted with blend, framed with fill, and emitted as base64 for host-side PPM reconstruction and golden-image comparison.
* :example:`peripherals/ppa/ppa_transform` - PPA transform image processing example. The embedded RGB565 image is transformed by SRM, framed with fill, and emitted as base64 for host-side PPM reconstruction and golden-image comparison.
* :example:`peripherals/ppa/ppa_color_key` - PPA blend color-keying example. The example generates a centered RGB888 glow foreground in software, then demonstrates two blend effects on the embedded RGB565 image: replacing the keyed red `ESP32` text with the glow, and preserving the keyed text while blending the glow into the non-key area. Both results are emitted as base64 for host-side PPM reconstruction and golden-image comparison.
* :example:`peripherals/ppa/ppa_freetype` - PPA FreeType icon compositing example. The example uses the `espressif/freetype` component to rasterize Font Awesome icon code points (two rows of three) into small per-glyph A8 alpha masks, then uses the PPA blend engine to composite each glyph over a software-generated gradient with a fixed icon color. The final composited RGB565 frame is emitted as base64 for host-side PPM reconstruction and golden-image comparison.
API Reference
-------------
+2 -1
View File
@@ -175,8 +175,9 @@ PPA 操作作用于输入图片的目标块。因此,完成一次 PPA 事务
应用示例
^^^^^^^^^
* :example:`peripherals/ppa/ppa_transform` - PPA transform 图像处理示例。嵌入的 RGB565 图像会经过 SRM 变换、blend 高亮和 fill 边框处理,然后以 base64 输出,供主机端重建为 PPM 并与 golden 图像比对。
* :example:`peripherals/ppa/ppa_transform` - PPA transform 图像处理示例。嵌入的 RGB565 图像会经过 SRM 变换和 fill 边框处理,然后以 base64 输出,供主机端重建为 PPM 并与 golden 图像比对。
* :example:`peripherals/ppa/ppa_color_key` - PPA blend color key 示例。示例先在软件中生成居中的 RGB888 glow 前景,然后在嵌入式 RGB565 图片上演示两种 blend 效果:一种是通过 blend color key 将命中的红色 `ESP32` 文本像素替换为 glow,另一种是在保留命中文本的同时,将 glow 混合到非 key 区域。两种结果都会以 base64 输出,供主机端重建为 PPM 并与 golden 图像比对。
* :example:`peripherals/ppa/ppa_freetype` - PPA FreeType 图标合成示例。示例使用 `espressif/freetype` 组件将 Font Awesome 图标的 Unicode 码点(两行,每行三个)栅格化为小的逐字形 A8 透明度掩码,然后通过 PPA blend 引擎以固定图标颜色将每个字形合成到软件生成的渐变背景上。最终合成后的 RGB565 帧会以 base64 输出,供主机端重建为 PPM 并与 golden 图像比对。
API 参考
--------