| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2009 Intel Corporation. All Rights Reserved. | 2 * Copyright (c) 2009 Intel Corporation. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Permission is hereby granted, free of charge, to any person obtaining a | 4 * Permission is hereby granted, free of charge, to any person obtaining a |
| 5 * copy of this software and associated documentation files (the | 5 * copy of this software and associated documentation files (the |
| 6 * "Software"), to deal in the Software without restriction, including | 6 * "Software"), to deal in the Software without restriction, including |
| 7 * without limitation the rights to use, copy, modify, merge, publish, | 7 * without limitation the rights to use, copy, modify, merge, publish, |
| 8 * distribute, sub license, and/or sell copies of the Software, and to | 8 * distribute, sub license, and/or sell copies of the Software, and to |
| 9 * permit persons to whom the Software is furnished to do so, subject to | 9 * permit persons to whom the Software is furnished to do so, subject to |
| 10 * the following conditions: | 10 * the following conditions: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #define VA_TRACE_FLAG_LOG 0x1 | 34 #define VA_TRACE_FLAG_LOG 0x1 |
| 35 #define VA_TRACE_FLAG_BUFDATA 0x2 | 35 #define VA_TRACE_FLAG_BUFDATA 0x2 |
| 36 #define VA_TRACE_FLAG_CODEDBUF 0x4 | 36 #define VA_TRACE_FLAG_CODEDBUF 0x4 |
| 37 #define VA_TRACE_FLAG_SURFACE_DECODE 0x8 | 37 #define VA_TRACE_FLAG_SURFACE_DECODE 0x8 |
| 38 #define VA_TRACE_FLAG_SURFACE_ENCODE 0x10 | 38 #define VA_TRACE_FLAG_SURFACE_ENCODE 0x10 |
| 39 #define VA_TRACE_FLAG_SURFACE_JPEG 0x20 | 39 #define VA_TRACE_FLAG_SURFACE_JPEG 0x20 |
| 40 #define VA_TRACE_FLAG_SURFACE (VA_TRACE_FLAG_SURFACE_DECODE | \ | 40 #define VA_TRACE_FLAG_SURFACE (VA_TRACE_FLAG_SURFACE_DECODE | \ |
| 41 VA_TRACE_FLAG_SURFACE_ENCODE | \ | 41 VA_TRACE_FLAG_SURFACE_ENCODE | \ |
| 42 VA_TRACE_FLAG_SURFACE_JPEG) | 42 VA_TRACE_FLAG_SURFACE_JPEG) |
| 43 | 43 |
| 44 #define VA_TRACE_FUNC(trace_func,...) \ | 44 #define VA_TRACE_LOG(trace_func,...) \ |
| 45 if (trace_flag) { \ | 45 if (trace_flag & VA_TRACE_FLAG_LOG) { \ |
| 46 trace_func(__VA_ARGS__); \ | 46 trace_func(__VA_ARGS__); \ |
| 47 } | 47 } |
| 48 #define VA_TRACE_LOG(trace_func,...) \ | 48 #define VA_TRACE_SURFACE(trace_func,...) \ |
| 49 if (trace_flag & VA_TRACE_FLAG_LOG) { \ | 49 if (trace_flag & (VA_TRACE_FLAG_SURFACE | VA_TRACE_FLAG_CODEDBUF)) { \ |
| 50 trace_func(__VA_ARGS__); \ | 50 trace_func(__VA_ARGS__); \ |
| 51 } | |
| 52 #define VA_TRACE_SURFACE(trace_func,...) \ | |
| 53 if (trace_flag & (VA_TRACE_FLAG_SURFACE | VA_TRACE_FLAG_CODEDBUF)) { \ | |
| 54 trace_func(__VA_ARGS__); \ | |
| 55 } | 51 } |
| 56 | 52 |
| 57 void va_TraceInit(VADisplay dpy); | 53 void va_TraceInit(VADisplay dpy); |
| 58 void va_TraceEnd(VADisplay dpy); | 54 void va_TraceEnd(VADisplay dpy); |
| 59 | 55 |
| 60 void va_TraceMsg(int idx, const char *msg, ...); | 56 void va_TraceMsg(int idx, const char *msg, ...); |
| 61 | 57 |
| 62 void va_TraceInitialize ( | 58 void va_TraceInitialize ( |
| 63 VADisplay dpy, | 59 VADisplay dpy, |
| 64 int *major_version, /* out */ | 60 int *major_version, /* out */ |
| 65 int *minor_version /* out */ | 61 int *minor_version /* out */ |
| 66 ); | 62 ); |
| 67 | 63 |
| 68 void va_TraceTerminate ( | 64 void va_TraceTerminate ( |
| 69 VADisplay dpy | 65 VADisplay dpy |
| 70 ); | 66 ); |
| 71 | 67 |
| 72 void va_TraceCreateConfig( | 68 void va_TraceCreateConfig( |
| 73 VADisplay dpy, | 69 VADisplay dpy, |
| 74 VAProfile profile, | 70 VAProfile profile, |
| 75 VAEntrypoint entrypoint, | 71 VAEntrypoint entrypoint, |
| 76 VAConfigAttrib *attrib_list, | 72 VAConfigAttrib *attrib_list, |
| 77 int num_attribs, | 73 int num_attribs, |
| 78 VAConfigID *config_id /* out */ | 74 VAConfigID *config_id /* out */ |
| 79 ); | 75 ); |
| 80 | 76 |
| 81 void va_TraceCreateSurface( | 77 void va_TraceCreateSurfaces( |
| 82 VADisplay dpy, | 78 VADisplay dpy, |
| 83 int width, | 79 int width, |
| 84 int height, | 80 int height, |
| 85 int format, | 81 int format, |
| 86 int num_surfaces, | 82 int num_surfaces, |
| 87 VASurfaceID *surfaces» /* out */ | 83 VASurfaceID *surfaces,» /* out */ |
| 84 VASurfaceAttrib *attrib_list, |
| 85 unsigned int num_attribs |
| 88 ); | 86 ); |
| 89 | 87 |
| 90 void va_TraceCreateContext( | 88 void va_TraceCreateContext( |
| 91 VADisplay dpy, | 89 VADisplay dpy, |
| 92 VAConfigID config_id, | 90 VAConfigID config_id, |
| 93 int picture_width, | 91 int picture_width, |
| 94 int picture_height, | 92 int picture_height, |
| 95 int flag, | 93 int flag, |
| 96 VASurfaceID *render_targets, | 94 VASurfaceID *render_targets, |
| 97 int num_render_targets, | 95 int num_render_targets, |
| 98 VAContextID *context /* out */ | 96 VAContextID *context /* out */ |
| 99 ); | 97 ); |
| 100 | 98 |
| 99 void va_TraceCreateBuffer ( |
| 100 VADisplay dpy, |
| 101 VAContextID context, /* in */ |
| 102 VABufferType type, /* in */ |
| 103 unsigned int size, /* in */ |
| 104 unsigned int num_elements, /* in */ |
| 105 void *data, /* in */ |
| 106 VABufferID *buf_id /* out */ |
| 107 ); |
| 108 |
| 109 void va_TraceDestroyBuffer ( |
| 110 VADisplay dpy, |
| 111 VABufferID buf_id /* in */ |
| 112 ); |
| 101 | 113 |
| 102 void va_TraceMapBuffer ( | 114 void va_TraceMapBuffer ( |
| 103 VADisplay dpy, | 115 VADisplay dpy, |
| 104 VABufferID buf_id, /* in */ | 116 VABufferID buf_id, /* in */ |
| 105 void **pbuf /* out */ | 117 void **pbuf /* out */ |
| 106 ); | 118 ); |
| 107 | 119 |
| 108 | 120 |
| 109 void va_TraceBeginPicture( | 121 void va_TraceBeginPicture( |
| 110 VADisplay dpy, | 122 VADisplay dpy, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 unsigned int number_cliprects, /* number of clip rects in the clip list */ | 196 unsigned int number_cliprects, /* number of clip rects in the clip list */ |
| 185 unsigned int flags /* de-interlacing flags */ | 197 unsigned int flags /* de-interlacing flags */ |
| 186 ); | 198 ); |
| 187 | 199 |
| 188 #ifdef __cplusplus | 200 #ifdef __cplusplus |
| 189 } | 201 } |
| 190 #endif | 202 #endif |
| 191 | 203 |
| 192 | 204 |
| 193 #endif /* VA_TRACE_H */ | 205 #endif /* VA_TRACE_H */ |
| OLD | NEW |