hardware/intel/libva
リビジョン | 9f1afd586b2923b3e694d6229508ab83b89d7758 (tree) |
---|---|
日時 | 2010-05-11 02:14:53 |
作者 | Austin Yuan <shengquan.yuan@gmai...> |
コミッター | Austin Yuan |
global vaDisplayIsValid
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
@@ -282,11 +282,6 @@ VADisplay vaGetDisplay ( | ||
282 | 282 | #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext) |
283 | 283 | #define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; } |
284 | 284 | |
285 | -static int vaDisplayIsValid (VADisplay dpy) | |
286 | -{ | |
287 | - VADisplayContextP pDisplayContext = (VADisplayContextP)dpy; | |
288 | - return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext); | |
289 | -} | |
290 | 285 | |
291 | 286 | #ifdef ANDROID |
292 | 287 | VAStatus vaPutSurface ( |
@@ -64,7 +64,7 @@ extern int trace_flag; | ||
64 | 64 | #define VA_MINOR_VERSION (31) |
65 | 65 | #define VA_VERSION_S "0.31.1" |
66 | 66 | |
67 | -static int vaDisplayIsValid(VADisplay dpy) | |
67 | +int vaDisplayIsValid(VADisplay dpy) | |
68 | 68 | { |
69 | 69 | VADisplayContextP pDisplayContext = (VADisplayContextP)dpy; |
70 | 70 | return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext); |
@@ -219,12 +219,6 @@ VADisplay vaGetDisplay ( | ||
219 | 219 | #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext) |
220 | 220 | #define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; } |
221 | 221 | |
222 | -static int vaDisplayIsValid(VADisplay dpy) | |
223 | -{ | |
224 | - VADisplayContextP pDisplayContext = (VADisplayContextP)dpy; | |
225 | - return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext); | |
226 | -} | |
227 | - | |
228 | 222 | VAStatus vaPutSurface ( |
229 | 223 | VADisplay dpy, |
230 | 224 | VASurfaceID surface, |