if (panel_type == 0) {
screen_size = 800*480*4;
disp_config_file = "iar_xj3_lcd.json";
} else if (panel_type == 1) {
screen_size = 720*1280*4;
disp_config_file = "iar_xj3_mipi736p.json";
} else if (panel_type == 2) {
screen_size = 1080*1920*4;
disp_config_file = "iar_xj3_mipi1080p.json";
} else if (panel_type == 3) {
screen_size = 1920*1080*4;
disp_config_file = "iar_xj3_hdmi_1080p.json";
} else if (panel_type == 4) {
screen_size = 1920*1080*4;
disp_config_file = "iar_xj3_ipi_1080p.json";
} else {
cerr << "Error: wrong panel type." <<
screen_size = 800*480*4;
disp_config_file = "iar_xj3_lcd.json";
} else if (panel_type == 1) {
screen_size = 720*1280*4;
disp_config_file = "iar_xj3_mipi736p.json";
} else if (panel_type == 2) {
screen_size = 1080*1920*4;
disp_config_file = "iar_xj3_mipi1080p.json";
} else if (panel_type == 3) {
screen_size = 1920*1080*4;
disp_config_file = "iar_xj3_hdmi_1080p.json";
} else if (panel_type == 4) {
screen_size = 1920*1080*4;
disp_config_file = "iar_xj3_ipi_1080p.json";
} else {
cerr << "Error: wrong panel type." <<
应该可以用电脑屏幕1080PHDMI的,但是在车上测试得有专门的小屏,代码中的800x400不知道是哪种?
}
}

