Freej / FreejScriptingWhishlist / ViewPort

ViewPort() - Open up many output Windows on any X screen. It uses a XVideo Surface. This provides us with zooming (and smoothing) with no CPU costs!

Every GPU supports at least one Xv surface per screen and some with RGBA input! However the XvAttributes like colour correction, hue etc. don't work.

try {
    vp = new ViewPort(300,200,":0");
    echo("OK:" + vp);
    add_layer(vp);
} catch (e) {
    echo("Shit: " + e); // maybe the port is busy
}

press @ in freej console to enable black matte, but some movies and images on the stage. move the ViewPort through the layers! Use ctrl-a to set zoom and position.

tested GPU:

Useful tools to play with:

    Number of image formats: 8
      id: 0x41424752 (ABGR)
        guid: 52474241-0000-0010-8000-00aa00389b71
        bits per pixel: 32
        number of planes: 1
        type: RGB (packed)
        depth: 32
        red, green, blue masks: 0xff0000, 0xff00, 0xff
The ABGR is a bug in the xvinfo tool should be RGBA ... ppc

bugs / todo

ViewPort (last edited 2008-06-26 09:50:26 by anonymous)