• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revision2162a793560a02651b3da00bb663f519742bc3fc (tree)
Time2009-08-14 23:21:34
AuthorGwenole Beauchesne <gbeauchesne@spli...>
CommiterAustin Yuan

Log Message

Explicit API extensions versioning from SDS.

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>

Change Summary

Incremental Difference

--- a/configure.ac
+++ b/configure.ac
@@ -28,6 +28,9 @@ m4_define([libva_micro_version], [4])
2828 m4_define([libva_version],
2929 [libva_major_version.libva_minor_version.libva_micro_version])
3030
31+# increase this number for each API change
32+m4_define([libva_sds_version], [2])
33+
3134 # if the library source code has changed, increment revision
3235 m4_define([libva_lt_revision], [0])
3336 # if any interface was added/removed/changed, then inc current, reset revision
@@ -52,11 +55,14 @@ AC_SUBST(LIBVA_MINOR_VERSION)
5255 AC_SUBST(LIBVA_MICRO_VERSION)
5356 AC_SUBST(LIBVA_VERSION)
5457
58+LIBVA_SDS_VERSION=libva_sds_version
59+AC_SUBST(LIBVA_SDS_VERSION)
60+
5561 LIBVA_LT_CURRENT=libva_lt_current
5662 LIBVA_LT_REV=libva_lt_revision
5763 LIBVA_LT_AGE=libva_lt_age
5864 LIBVA_LT_VERSION="$LIBVA_LT_CURRENT:$LIBVA_LT_REV:$LIBVA_LT_AGE"
59-LIBVA_LT_LDFLAGS="-version-info $LIBVA_LT_VERSION -release $LIBVA_VERSION"
65+LIBVA_LT_LDFLAGS="-version-info $LIBVA_LT_VERSION -release $LIBVA_VERSION.$LIBVA_SDS_VERSION"
6066 AC_SUBST(LIBVA_LT_VERSION)
6167 AC_SUBST(LIBVA_LT_LDFLAGS)
6268
--- a/src/va.c
+++ b/src/va.c
@@ -40,6 +40,7 @@
4040
4141
4242 #define DRIVER_INIT_FUNC "__vaDriverInit_0_30"
43+#define DRIVER_INIT_FUNC_SDS "__vaDriverInit_0_30_sds"
4344
4445 #define DRIVER_EXTENSION "_drv_video.so"
4546
@@ -166,6 +167,11 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
166167 init_func = (VADriverInit) dlsym(handle, DRIVER_INIT_FUNC);
167168 if (!init_func)
168169 {
170+ /* Then try SDS extensions (VDPAU and XvBA backends) */
171+ init_func = (VADriverInit) dlsym(handle, DRIVER_INIT_FUNC_SDS);
172+ }
173+ if (!init_func)
174+ {
169175 va_errorMessage("%s has no function %s\n", driver_path, DRIVER_INIT_FUNC);
170176 dlclose(handle);
171177 }
--- a/src/va_version.h.in
+++ b/src/va_version.h.in
@@ -47,6 +47,13 @@
4747 #define VA_MICRO_VERSION (@LIBVA_MICRO_VERSION@)
4848
4949 /**
50+ * VA_SDS_VERSION:
51+ *
52+ * The version of the SDS API extensions to the VA library
53+ */
54+#define VA_SDS_VERSION (@LIBVA_SDS_VERSION@)
55+
56+/**
5057 * VA_VERSION:
5158 *
5259 * The full version of the VA library, like 1.2.3
@@ -59,7 +66,7 @@
5966 * The full version of the VA library, in string form (suited for
6067 * string concatenation)
6168 */
62-#define VA_VERSION_S "@LIBVA_VERSION@"
69+#define VA_VERSION_S "@LIBVA_VERSION@-sds@LIBVA_SDS_VERSION@"
6370
6471 /**
6572 * VA_VERSION_HEX: