[Libva] Do we have plan to run libva without X11?

Yuan, Shengquan shengquan.yuan at gmail.com
Tue Jun 14 19:28:19 PDT 2011


On 6/12/11, hank peng <pengxihan at gmail.com> wrote:
> Hi, guys:
> My self-built platform is not based on X11 and I copy data directly to
> video frame buffer. I have tested mplayer with vaapi patch on playing
> 1080p movie on my i5-2300 machine, OS distribution is FC14, its
> performance is very impressive, about 5% CPU usage. So, I hope to run
> libva on my self-built platform. Now, libva's interface is based on
> X11, is it possible to provide more independent interface, for
> example, decoding interface, scaling interface, display interface
> which may be X11 related.
>
You may try "./autogen.sh --enable-dummy-backend=yes", and modify
dummy/va_dummy.c:va_DisplayContextGetDriverName, add the device ID and
the driver name mapping:
    struct {
        int vendor_id;
        int device_id;
        char driver_name[64];
    } devices[] = {
        { 0x8086, 0x4100, "pvr" },
        { 0x8086, 0x0130, "pvr" },
        { 0x0,    0x0,    "\0" },
    };

Make sure libudev is installed. You may need slightly change
va_dummy.c and the driver (remove X11-releated post-procesing part).

Thanks
-Austin


More information about the Libva mailing list