验证

修改屏参后,需要验证是否显示正常。下面通过JpegPlayer这个demo,来测试屏参。

  • 从document目录下载JpegPlayer.rar到sdk目录下并解压:

  • 将修改好的屏参和对应分辨率的图片拷贝到JpegPlayer目录下,并重命名为logo.jpg:

  • 修改sstardisp.c,将屏参头文件包含其中,并设置对应的分辨率:
#define UI_1024_600 1
#define USE_MIPI    0


#if UI_1024_600
#include "SAT070CP50_1024x600.h"
#else
#if USE_MIPI
#include "EK79007_1024x600_MIPI.h"
#else
#include "SAT070AT50_800x480.h"
#endif
#endif

// loacl play res
#if UI_1024_600
//#define LOCAL_VIDEO_W  822
//#define LOCAL_VIDEO_H  464
//#define LOCAL_VIDEO_X  100
//#define LOCAL_VIDEO_Y  60
#define LOCAL_VIDEO_W  1024
#define LOCAL_VIDEO_H  600
#define LOCAL_VIDEO_X  0
#define LOCAL_VIDEO_Y  0
#else
//#define LOCAL_VIDEO_W  640
//#define LOCAL_VIDEO_H  360
//#define LOCAL_VIDEO_X  100
//#define LOCAL_VIDEO_Y  60
#define LOCAL_VIDEO_W  800
#define LOCAL_VIDEO_H  480
#define LOCAL_VIDEO_X  0
#define LOCAL_VIDEO_Y  0
#endif

  • 执行make,生成应用程序logo:

  • 将logo和logo.jpg拷贝到板子上,然后执行应用程序logo,观察图片是否显示正常:
    # ./logo
文档更新时间: 2020-12-16 14:55   作者:Aeeditor