summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2008-05-05 17:30:11 -0400
committerAustin Yuan <shengquan.yuan@intel.com>2008-05-05 17:30:11 -0400
commit1ccd01cd667e2c91a4802022e41a583d91d8840c (patch)
tree9080d621f309137153a0ae2b41a6c5ac58859826
parent8db6ca66e7e43476570c4ee39dbf3d140f62eea5 (diff)
downloadlibva-1ccd01cd667e2c91a4802022e41a583d91d8840c.tar.gz
Correct some mistakes in va.h
-rwxr-xr-xsrc/va.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/va.h b/src/va.h
index 0384f16..55f9a07 100755
--- a/src/va.h
+++ b/src/va.h
@@ -203,7 +203,7 @@ typedef enum
VAEntrypointMoComp = 4,
VAEntrypointDeblocking = 5,
/* Encode entrypoints */
- VAEntrypointVLC = 6, /* slice level encode */
+ VAEntrypointEncodeES = 6, /* slice level encode */
} VAEntrypoint;
/* Currently defined configuration attribute types */
@@ -1837,7 +1837,7 @@ Mostly to demonstrate program flow with no error handling ...
/* find out whether H.264 BP encode is supported */
VAProfile *profiles = malloc(sizeof(VAProfile)*max_num_profiles);
int num_profiles;
- vaQueryConfigProfiles(dpy, profiles, &profiles);
+ vaQueryConfigProfiles(dpy, profiles, &num_profiles);
/*
* traverse "profiles" to locate the one that matches VAProfileH264BP
*/
@@ -1849,11 +1849,12 @@ Mostly to demonstrate program flow with no error handling ...
/* traverse "entrypoints" to see whether VLC is there */
- /* Assuming finding VLC, find out the format and rate control mode for the source */
- VAConfigAttrib attrib;
- attrib.type = VAConfigAttribRTFormat;
+ /* Assuming finding VAEntrypointEncodeES, find out the format and rate control mode for the source */
+ VAConfigAttrib attrib[2];
+ attrib[0].type = VAConfigAttribRTFormat;
+ attrib[1].type = VAConfigAttribRateControl;
vaGetConfigAttributes(dpy, VAProfileH264Baseline, VAEntrypointVLC,
- &attrib, 1);
+ &attrib, 2);
if (attrib[0].value & VA_RT_FORMAT_YUV420)
/* Found desired format, keep going */