Edit online

测试指南

测试环境

硬件
  • demo100 开发板

  • LVDS 屏幕,7 寸 TFT 屏幕,驱动芯片 EK79001+EK73215

软件
  • PC 端的串口终端软件,用于 PC 和开发板进行串口通信

  • 显示模块 video 图层 blend 测试: video_layer

  • 显示模块 video 图层调色测试: disp_prop

软件配置

  1. 配置 LVDS 屏幕
    测试中需要用到 LVDS 屏幕,以驱动芯片 EK79001+EK73215 为例,在 Luban-Lite 的根目录下通过make linux-menuconfig,按如下选择:
    [*] Display Support
            select Display interface (Display LVDS interface)  --->
        LVDS interface options  --->
  2. 编译 MPP FB 测试用例
    Local packages options  --->
        ArtInChip packages options  --->
            aic-mpp  --->
                 [*] Install MPP FB test programs

video_layer 测试

video_layer 的主要功能是测试显示引擎 UI 图层和 Video 图层 blend,在 Video 图层播放一个视频帧文件

测试需要依赖 SD Card,将 YUV 数据保存在 SD Card 中,在系统启动后进行挂载:

mount sd0p0 / elm
播放一个 yuv420 格式的文件
aic /> video_layer -u
Usage: video_layer [options]:
     -w, --width        need an integer argument, default is 176
     -h, --height       need an integer argument, default is 144
     -s, --stride       video stride, just tile format need
     -f, --format       video format, yuv420p etc
     -i, --input        need a file name
     -l, --list     list the supported formats
     -u, --usage

Example: video_layer -w 176 -h 144 -f yuv420p -i my.yuv

aic /> video_layer -w 176 -h 144 -f yuv420p -i my.yuv
disp_prop 的主要功能是测试显示引擎 Video 图层的 csc 色彩转换模块,通过设置亮度,对比度,饱和度,色调等参数,改变 video 图层的显示效果。
aic /> disp_prop -u
Usage: disp_prop [Options], built on May 24 2023 17:41:29
    -b, --bright
    -c, --contrast
    -s, --saturation
    -h, --hue
    -u, --usage

All parameter range in [0, 100], 50 means no effect, default is 50

Example: disp_prop -b 35 -c 40 -s 45 -h 44
设置参数后再次在 video 图层播放一个 YUV 视频帧文件,可以看到两者显示效果不同:
aic /> video_layer -w 176 -h 144 -f yuv420p -i my.yuv

如果想重置显示效果,可将所有参数设置为 50,或者直接执行 disp_prop 命令

aic /> disp_prop -b 50 -c 50 -s 50 -h 50

aic /> disp_prop