I’d like to use EGL_TRANSPARENT_TYPE : EGL_TRANSPARENT_RGB.
Can Jetson Xavier NX support this setting ?
If no, could you show me a way to make only the video are non-transparent
when setting the transparency of a window in X11 with XA_NET_WM_WINDOW_OPACITY ?
Hi,
These are defined in
> /usr/src/nvidia/graphics_demos/include/EGL/egl.h
So it is supposed to work. Unfortunately we don’t have existing samples code. You may search online for the sample.
Above comment is wrong.
When I checked the following code, EGL_NONE(0x3038) is returned.
Which does this mean that EGL_TRANSPARENT_RGB isn’t supported or I’m mistake to set something ?
EGLint numFBConfig;
eglGetConfigs(egl_display, NULL, 0, &numFBConfig);
printf("Total Num of FrameBufferConfig: %d.\n", numFBConfig);
EGLint configArrySize = numFBConfig;
EGLConfig *FB_configs = (EGLConfig *)malloc(configArrySize * sizeof(EGLConfig));
eglGetConfigs(egl_display, FB_configs, configArrySize, &numFBConfig);
for (int i = 0; i < numFBConfig; i++)
{
EGLint value;
eglGetConfigAttrib(egl_display, FB_configs[i], EGL_TRANSPARENT_TYPE, &value); printf("%d, %s", value, (value == EGL_TRANSPARENT_RGB)? "EGL_TRANSPARENT_RGB" : "EGL_NONE");
printf("\n");
}
Hi,
You are correct. If it returns EGL_NONE, it is not supported. Sorry for my wrong information.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.