/* load the image to the center of the screen. */
void load_centralized_image(uint32_t addr, ips_dev_panel_t *panel)
/* load the image to the center of the screen. */
void load_centralized_image(uint32_t addr, ips_dev_panel_t *panel)
{
    int screenwidth = panel->width;
    int screenheight = panel->height;
    int width = 313, height = 117;
    int left_offset = (screenwidth - width) / 2;
    int top_offset = (screenheight - height) / 2;
    int i = 0;
    memset((void *)addr, 0x1F, 2 * screenheight * screenwidth);
    for (i = 0; i < height; i++) {
        memcpy((void *)(addr + screenwidth * (top_offset + i) * 2 + left_offset * 2),
               &gImage_fsl[width * i * 2], width * 2);
    }
}