From 2359cea6109b9bfd16b1d3b0cea49c0840709fd2 Mon Sep 17 00:00:00 2001 From: Ren Zhaohan Date: Thu, 13 May 2010 14:37:06 +0800 Subject: [PATCH] remove vaDisplayIsValid by linking libva_android.so --- va/Android.mk | 1 + va/va_tpi.c | 6 ------ 2 files changed, 1 insertion(+), 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 -- 2.7.4