While working on the Xv Patch for
XMAME, I came up against a number of issues with the Xv Overlay support
in
the XFree86 drivers. Some chipsets are only capable of showing a
Video
Overlay in YUV colour space; many have the ability to display an RGB
overlay,
but their drivers don't yet support it. Of those drivers that do
support
it, very few have actually been tested, so major bugs still exist in
some
of them!
This XvTestcard program is very simple - it has no GUI, and
configuration
must be done by editing the source code, but it generates known
patterns on
screen, static or animated, and these can be compared with the
screenshots
included in the archive, and reproduced below...
Configuration should be done near the head of main.c in these lines:
/* Either
specify
a format for the testcard here with, for example,
#define IMAGEFORMAT RGBA, or leave undefined to
use the first available RGB format... */
/* #define IMAGEFORMAT RV16 */
/* Increment used for the animation.
Set to 0 for a static display, for comparing
screenshots... */
static int increment=0;
Comment out the "#define IMAGEFORMAT"
part to specify a particular format, and change the RV16 to whichever
format
you wish to use (e.g. YUY2, YV12, etc.)