From: Ren Zhaohan Date: Thu, 13 May 2010 06:37:06 +0000 (+0800) Subject: remove vaDisplayIsValid by linking libva_android.so X-Git-Tag: libva-1.0.3~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F584%2F1;p=profile%2Fivi%2Flibva.git remove vaDisplayIsValid by linking libva_android.so --- 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