|
添加FB
create.width = bo->width;
create.height = bo->height;
create.bpp = 24;
drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create);
bo->pitch = create.pitch;
cout<<create.pitch<<endl;//3648
getchar();
bo->size = create.size;
bo->handle = create.handle;
drmModeAddFB(fd, bo->width, bo->height, 24, 24, bo->pitch,bo->handle, &bo->fb_id);
给FB写入RGB888数据
YUV420toRGB24_RGA(RK_FORMAT_YCrCb_420_SP,base,1920,1088,RK_FORMAT_RGBA_8888,buf_drm[h].vaddr,1200,1920,1);
显示RGB888图像时,会出现如图所示的问题,请教一下该怎么解决?
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|