View Single Post
Old 12-19-08, 10:11 AM   #1
wump
Registered User
 
Join Date: Dec 2008
Posts: 9
Lightbulb VDPAU information utility

In similar vein to utilities like glxinfo, xdpyinfo, I made a simple utility that queries and displays the VDPAU capabilities of your X display and prints them in tabular format. For example, on my 8600GT at home it shows:
Code:
display: :0.0   screen: 0
API version: 0
Information string: Unknown

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12 
422     4096  4096  UYVY YUYV 

Decoder capabilities:

name          level macbs width height
------------------------------------
MPEG1             0  8191  2032  2032
MPEG2_SIMPLE      3  8191  2032  2032
MPEG2_MAIN        3  8191  2032  2032
H264_MAIN        41  8191  2032  2032
H264_HIGH        41  8191  2032  2032

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8          8192  8192    y  Y8U8V8A8 V8U8Y8A8 
R10G10B10A2       8192  8192    y  Y8U8V8A8 V8U8Y8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8          8192  8192
R8G8B8A8          8192  8192
R10G10B10A2       8192  8192
B10G10R10A2       8192  8192
A8                8192  8192

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     y
INVERSE_TELECINE                 y
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y         1     4096
VIDEO_SURFACE_HEIGHT             y         1     4096
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y
I just wrote it as a simple first VDPAU program, to see how the API works, but I realised it might be useful to others as well.

Download link (c++ source code):
http://www.cs.rug.nl/~wladimir/vdpin...o-0.0.5.tar.gz

Changelog 0.0.5:
- show macroblocks instead of maximum number of references

Last edited by wump; 01-15-09 at 02:55 PM.
wump is offline   Reply With Quote