index cb815dacfca96093ce67f585a733a3a86f11c40d..fa5562cea1f21df701cb1507982862527c428d1a 100644 (file)
/* YUV packed */
{ PixelFormat::UYVY, { 1, { { 32, 2, 1 } }, } },
{ PixelFormat::YUYV, { 1, { { 32, 2, 1 } }, } },
+ { PixelFormat::YVYU, { 1, { { 32, 2, 1 } }, } },
+ { PixelFormat::VYUY, { 1, { { 32, 2, 1 } }, } },
/* YUV semi-planar */
{ PixelFormat::NV12, { 2, { { 8, 1, 1, }, { 16, 2, 2 } }, } },
+ { PixelFormat::NV21, { 2, { { 8, 1, 1, }, { 16, 2, 2 } }, } },
/* RGB16 */
{ PixelFormat::RGB565, { 1, { { 16, 1, 1 } }, } },
/* RGB32 */
{ PixelFormat::XRGB8888, { 1, { { 32, 1, 1 } }, } },
{ PixelFormat::XBGR8888, { 1, { { 32, 1, 1 } }, } },
+ { PixelFormat::ARGB8888, { 1, { { 32, 1, 1 } }, } },
+ { PixelFormat::ABGR8888, { 1, { { 32, 1, 1 } }, } },
};
void DumbFramebuffer::Create()
plane.handle = creq.handle;
plane.stride = creq.pitch;
plane.size = creq.height * creq.pitch;
+ plane.offset = 0;
/*
printf("buf %d: %dx%d, bitspp %d, stride %d, size %d\n",
/* create framebuffer object for the dumb-buffer */
uint32_t bo_handles[4] = { m_planes[0].handle, m_planes[1].handle };
uint32_t pitches[4] = { m_planes[0].stride, m_planes[1].stride };
- uint32_t offsets[4] = { 0 };
+ uint32_t offsets[4] = { m_planes[0].offset, m_planes[1].offset };
uint32_t id;
r = drmModeAddFB2(card().fd(), width(), height(), (uint32_t)format(),
bo_handles, pitches, offsets, &id, 0);