Lines Matching defs:display

37 	Display			*display;
44 display = XOpenDisplay(NULL);
48 display,
60 XCloseDisplay(display);
66 Atom xv_colorkey = XInternAtom(display, "XV_COLORKEY", 0);
67 XvGetPortAttribute(display, port_num, xv_colorkey, &colorkey);
72 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height, XVMC_DIRECT, NULL) == XvMCBadContext);
75 assert(XvMCCreateContext(display, -1, surface_type_id, width, height, XVMC_DIRECT, &context) == XvBadPort);
77 assert(XvMCCreateContext(display, port_num, -1, width, height, XVMC_DIRECT, &context) == BadMatch);
79 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height, -1, &context) == BadValue);
81 assert(XvMCCreateContext(display, port_num, surface_type_id, 16384, height, XVMC_DIRECT, &context) == BadValue);
83 assert(XvMCCreateContext(display, port_num, surface_type_id, width, 16384, XVMC_DIRECT, &context) == BadValue);
85 assert(XvMCCreateContext(display, port_num, surface_type_id, 16384, 16384, XVMC_DIRECT, &context) == BadValue);
87 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height, XVMC_DIRECT, &context) == Success);
99 assert(XvMCDestroyContext(display, NULL) == XvMCBadContext);
101 assert(XvMCDestroyContext(display, &context) == Success);
103 assert(XvMCCreateContext(display, port_num, surface_type_id, width + 1, height, XVMC_DIRECT, &context) == Success);
105 assert(XvMCDestroyContext(display, &context) == Success);
107 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height + 1, XVMC_DIRECT, &context) == Success);
109 assert(XvMCDestroyContext(display, &context) == Success);
111 assert(XvMCCreateContext(display, port_num, surface_type_id, width + 1, height + 1, XVMC_DIRECT, &context) == Success);
113 assert(XvMCDestroyContext(display, &context) == Success);
115 XvUngrabPort(display, port_num, CurrentTime);
116 XCloseDisplay(display);