Efficiently read the average color of the screen content rendered by XBMC
问题 I want to get the average color of the screen content when running XBMC to change the color of a TV ambient light. XBMC is running on a small HTPC with OpenGL ES 2.0 hardware (Raspberry Pi) running a Debian-derived distribution. I guess I have to read from the screen frame buffer in which XBMC draws using OpenGL. (At least, I think and hope that XBMC renders everything using OpenGL.) Is it possible to read the OpenGL frame buffer representing the whole screen output? What am I going to need