summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRen Zhaohan <zhaohan.ren@intel.com>2010-05-13 14:37:06 +0800
committerRen Zhaohan <zhaohan.ren@intel.com>2010-05-13 14:37:06 +0800
commit2359cea6109b9bfd16b1d3b0cea49c0840709fd2 (patch)
tree8ebd4bd21bf852400c91c6a4d9977639aae4977f
parent13925afa814962bd803f2a385ed4344a0d571862 (diff)
downloadlibva-2359cea6109b9bfd16b1d3b0cea49c0840709fd2.tar.gz
remove vaDisplayIsValid by linking libva_android.so
-rw-r--r--va/Android.mk1
-rw-r--r--va/va_tpi.c6
2 files changed, 1 insertions, 6 deletions
diff --git a/va/Android.mk b/va/Android.mk
index 8b65bf2..487bf12 100644
--- a/va/Android.mk
+++ b/va/Android.mk
@@ -60,6 +60,7 @@ LOCAL_COPY_HEADERS := \
va_tpi.h \
va_backend_tpi.h
+LOCAL_SHARED_LIBRARIES := libva_android
LOCAL_MODULE := libva_android_tpi
diff --git a/va/va_tpi.c b/va/va_tpi.c
index dda28e5..1f01ef0 100644
--- a/va/va_tpi.c
+++ b/va/va_tpi.c
@@ -39,12 +39,6 @@
#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
-static int vaDisplayIsValid (VADisplay dpy)
-{
- VADisplayContextP pDisplayContext = (VADisplayContextP)dpy;
- return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext);
-}
-
/* Wrap a CI (camera imaging) frame as a VA surface to share captured video between camear
* and VA encode. With frame_id, VA driver need to call CI interfaces to get the information
* of the frame, and to determine if the frame can be wrapped as a VA surface