remove vaDisplayIsValid by linking libva_android.so
authorRen Zhaohan <zhaohan.ren@intel.com>
Thu, 13 May 2010 06:37:06 +0000 (14:37 +0800)
committerRen Zhaohan <zhaohan.ren@intel.com>
Thu, 13 May 2010 06:37:06 +0000 (14:37 +0800)
va/Android.mk
va/va_tpi.c

index 8b65bf2..487bf12 100644 (file)
@@ -60,6 +60,7 @@ LOCAL_COPY_HEADERS := \
    va_tpi.h \
    va_backend_tpi.h
 
+LOCAL_SHARED_LIBRARIES := libva_android
 
 LOCAL_MODULE := libva_android_tpi
 
index dda28e5..1f01ef0 100644 (file)
 #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