diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2011-09-21 23:29:45 -0400 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@gmail.com> | 2011-09-22 00:58:01 -0400 |
commit | 549946cf2c5e0c5884d3137b1393967a6a891784 (patch) | |
tree | e503076a5cb20253672f75bc9f90effcaed25381 /va/x11 | |
parent | 1092e4b54a476260e3c74d87ebb1a552e8fef71e (diff) | |
download | libva-549946cf2c5e0c5884d3137b1393967a6a891784.tar.gz |
vatrace/vafool: refine it
remove va_fool_getframe.c which looks strange
correct some coding style for file va.c
simplify va_fool.c for both decode and encode
refine the surface dump of va_trace.c
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Diffstat (limited to 'va/x11')
-rw-r--r-- | va/x11/va_x11.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/va/x11/va_x11.c b/va/x11/va_x11.c index e44dfa7..86b040a 100644 --- a/va/x11/va_x11.c +++ b/va/x11/va_x11.c @@ -26,6 +26,8 @@ #include "sysdeps.h" #include "va.h" #include "va_backend.h" +#include "va_trace.h" +#include "va_fool.h" #include "va_x11.h" #include "va_dri.h" #include "va_dri2.h" @@ -208,13 +210,6 @@ VADisplay vaGetDisplay ( #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext) #define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; } -extern int fool_postp; /* do nothing for vaPutSurface if set */ -extern int trace_flag; /* trace vaPutSurface parameters */ -#define VA_TRACE(trace_func,...) \ - if (trace_flag) { \ - trace_func(__VA_ARGS__); \ - } - void va_TracePutSurface ( VADisplay dpy, VASurfaceID surface, @@ -258,8 +253,8 @@ VAStatus vaPutSurface ( CHECK_DISPLAY(dpy); ctx = CTX(dpy); - VA_TRACE(va_TracePutSurface, dpy, surface, (void *)draw, srcx, srcy, srcw, srch, - destx, desty, destw, desth, + VA_TRACE_FUNC(va_TracePutSurface, dpy, surface, (void *)draw, srcx, srcy, srcw, srch, + destx, desty, destw, desth, cliprects, number_cliprects, flags ); return ctx->vtable->vaPutSurface( ctx, surface, (void *)draw, srcx, srcy, srcw, srch, |