[Libva] [PATCH] vainfo/va.h: add VAProfileCount in va.h.

Zhao Halley halley.zhao at intel.com
Wed Jul 3 02:46:34 PDT 2013


it facilitate driver capability probing.
---
 test/vainfo/vainfo.c |    2 +-
 va/va.h              |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/vainfo/vainfo.c b/test/vainfo/vainfo.c
index 2578d30..1f35693 100644
--- a/test/vainfo/vainfo.c
+++ b/test/vainfo/vainfo.c
@@ -111,7 +111,7 @@ int main(int argc, const char* argv[])
   printf("%s: Driver version: %s\n", name, driver ? driver : "<unknown>");
 
   printf("%s: Supported profile and entrypoints\n", name);
-  for	(profile = VAProfileNone; profile <= VAProfileH264ConstrainedBaseline; profile++) {
+  for	(profile = VAProfileNone; profile < VAProfileCount; profile++) {
       char *profile_str;
 
       va_status = vaQueryConfigEntrypoints(va_dpy, profile, entrypoints, 
diff --git a/va/va.h b/va/va.h
index 0eceea7..b25a55b 100644
--- a/va/va.h
+++ b/va/va.h
@@ -286,7 +286,8 @@ typedef enum
     VAProfileVC1Advanced		= 10,
     VAProfileH263Baseline		= 11,
     VAProfileJPEGBaseline               = 12,
-    VAProfileH264ConstrainedBaseline = 13
+    VAProfileH264ConstrainedBaseline = 13,
+    VAProfileCount              = 14
 } VAProfile;
 
 /* 
-- 
1.7.9.5



More information about the Libva mailing list