[mythtv] display of opengl RGBA parameters wrong
Martin Bene
Martin.Bene at icomedias.com
Fri Feb 2 10:57:55 UTC 2024
Hi,
I just saw this in debug output:
CoreContext mythrenderopengl.cpp:430 (DebugFeatures) - OpenGL: Qt OpenGL surface : RGBA: 5:6:6:0 Depth: 0 Stencil: 0
Pretty sure that should actually be 5:6:5 for a16-bit surface.
And sure enough, here's the code resulting in that output
void MythRenderOpenGL::DebugFeatures(void)
{
QSurfaceFormat fmt = format();
QString qtglversion = QString("OpenGL%1 %2.%3")
.arg(fmt.renderableType() == QSurfaceFormat::OpenGLES ? "ES" : "")
.arg(fmt.majorVersion()).arg(fmt.minorVersion());
QString qtglsurface = QString("RGBA: %1:%2:%3:%4 Depth: %5 Stencil: %6")
.arg(fmt.redBufferSize()).arg(fmt.greenBufferSize())
.arg(fmt.greenBufferSize()).arg(fmt.alphaBufferSize())
.arg(fmt.depthBufferSize()).arg(fmt.stencilBufferSize());
The 2nd greenBufferSize should probably be blueBufferSize
As an aside: I get that 16-bit surface on mythfrontend(master) on raspi 5 in wayland, resulting in banding on gradients. Same system X11 has the expected RGBA: 8:8:8:0 surface. Any idea if/where I can force mythfrontend to get a 24 bit surface?
Thanks!
Martin Bene,
no.disclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20240202/8cb6c422/attachment.htm>
More information about the mythtv-dev
mailing list