6.2.4.5.1. mpp fb 接口使用

mpp fb 接口操作示例:

int main(void)
{
    struct aicfb_screeninfo 9nfo = {0};
    struct mpp_fb *fb;
    int zero, ret;

    mpp_fb_probe();

    fb = mpp_fb_open();
    if (!fb)
        return -1;

    // enable lcd panel
    ret = mpp_fb_ioctl(fb, AICFB_POWERON, &zero);
    if (ret)
        return -1;

    ret = mpp_fb_ioctl(fb, AICFB_GET_SCREENINFO, &info);
    if (ret)
        return -1;

    // clear framebuffer
    memset(info.framebuffer, 0x00, info.smem_len);

    mpp_fb_close(fb);

    return 0;
}