Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4817

Graphics, sound and multimedia • Re: TC358743 on rpi5

$
0
0
I was updating my code and found out that eglCreateImageKHR return NULL with DRM_FORMAT_RGB888

it only works with 32bit formats like DRM_FORMAT_ARGB8888 and DRM_FORMAT_XRGB8888

my program is based on kmscube, is there any reason why this shouldn't work?

Code:

   {     EGLint attr[] = {     EGL_WIDTH, width,     EGL_HEIGHT, height,     EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_RGB888,     EGL_DMA_BUF_PLANE0_FD_EXT, dmabuf_fd,     EGL_DMA_BUF_PLANE0_OFFSET_EXT, 0,     EGL_DMA_BUF_PLANE0_PITCH_EXT, width *3,     EGL_NONE   };         image = dec->egl->eglCreateImageKHR(dec->egl->display, EGL_NO_CONTEXT,       EGL_LINUX_DMA_BUF_EXT, NULL, attr);   }
in any case, since the rpi4+auvideab101 was capable of outputting in UYVY, could I do the same with rpi5 to output in RGB4?

but I imagine that in addition to this "v4l2-ctl -v width=1920,height=1080,pixelformat=RGB4" should I also change the values in media-ctl ?

Statistics: Posted by Bundan — Sat Feb 10, 2024 10:42 am



Viewing all articles
Browse latest Browse all 4817

Trending Articles