diff options
author | Younes Manton <younes.m@gmail.com> | 2009-01-12 13:19:07 -0500 |
---|---|---|
committer | Younes Manton <younes.m@gmail.com> | 2009-01-18 21:40:10 -0500 |
commit | c35dc4a741d4147a5da8bbe834a38a4c2ce627d1 (patch) | |
tree | 49880bd3e0cf8a05ce5164103dc9254d2b06f972 /src/xvmc/tests/testlib.h | |
parent | 1fd411539b9b7b8ae46c1aff0a000d9b4a8f5f3b (diff) |
g3dvl: Follow mesa naming conventions for src dirs.
Diffstat (limited to 'src/xvmc/tests/testlib.h')
-rw-r--r-- | src/xvmc/tests/testlib.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/xvmc/tests/testlib.h b/src/xvmc/tests/testlib.h new file mode 100644 index 0000000000..af71ad74e1 --- /dev/null +++ b/src/xvmc/tests/testlib.h @@ -0,0 +1,42 @@ +#ifndef testlib_h +#define testlib_h + +/* +#define TEST(pred, doc) test(pred, #pred, doc, __FILE__, __LINE__) + +void test(int pred, const char *pred_string, const char *doc_string, const char *file, unsigned int line); +*/ + +#include <sys/time.h> +#include <X11/Xlib.h> +#include <X11/extensions/XvMClib.h> + +/* + * display: IN A valid X display + * width, height: IN Surface size that the port must display + * chroma_format: IN Chroma format that the port must display + * mc_types, num_mc_types: IN List of MC types that the port must support, first port that matches the first mc_type will be returned + * port_id: OUT Your port's ID + * surface_type_id: OUT Your port's surface ID + * is_overlay: OUT If 1, port uses overlay surfaces, you need to set a colorkey + * intra_unsigned: OUT If 1, port uses unsigned values for intra-coded blocks + */ +int GetPort +( + Display *display, + unsigned int width, + unsigned int height, + unsigned int chroma_format, + const unsigned int *mc_types, + unsigned int num_mc_types, + XvPortID *port_id, + int *surface_type_id, + unsigned int *is_overlay, + unsigned int *intra_unsigned +); + +unsigned int align(unsigned int value, unsigned int alignment); + +int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y); + +#endif |