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