Author Topic: Programming Task: Detect VDPAU  (Read 5138 times)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Programming Task: Detect VDPAU
« on: July 02, 2010, 10:21:02 pm »
We need some way to detect VDPAU.

My thought, is to build a small C program that links to libvdpau, and does some basic initialization, if it is successful, then exit with an errorcode of 0,
otherwise, exit with another error code that we can decode, at the very least, that it wasn't successful.

Any volunteers?

-Thom

niz23

  • Guru
  • ****
  • Posts: 361
    • View Profile
Re: Programming Task: Detect VDPAU
« Reply #1 on: July 05, 2010, 05:34:12 pm »
There is a small utility written in cpp that can query nvidia cards and return what vdpau capabilities is supported.
It is linked to libvdpau and should be fairly easy to extend with new features.

What is your plan.
A tool that autoconfigure vdpau settings for each MD upon creation/install?

/niz23

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Programming Task: Detect VDPAU
« Reply #2 on: July 05, 2010, 06:06:22 pm »
very simple, we need to detect if vdpau is supported, and set appropriate device data based upon it. This includes setting VDPAU settings in MythTV.

-Thom