Commit 2359cea6 authored by Ren Zhaohan's avatar Ren Zhaohan

remove vaDisplayIsValid by linking libva_android.so

parent 13925afa
...@@ -60,6 +60,7 @@ LOCAL_COPY_HEADERS := \ ...@@ -60,6 +60,7 @@ LOCAL_COPY_HEADERS := \
va_tpi.h \ va_tpi.h \
va_backend_tpi.h va_backend_tpi.h
LOCAL_SHARED_LIBRARIES := libva_android
LOCAL_MODULE := libva_android_tpi LOCAL_MODULE := libva_android_tpi
......
...@@ -39,12 +39,6 @@ ...@@ -39,12 +39,6 @@
#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext) #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; } #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 /* 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 * 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 * of the frame, and to determine if the frame can be wrapped as a VA surface
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment