Lines Matching defs:display
38 Display *display;
48 display = XOpenDisplay(NULL);
52 display,
64 XCloseDisplay(display);
70 Atom xv_colorkey = XInternAtom(display, "XV_COLORKEY", 0);
71 XvGetPortAttribute(display, port_num, xv_colorkey, &colorkey);
74 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height, XVMC_DIRECT, &context) == Success);
75 assert(XvMCCreateSurface(display, &context, &surface) == Success);
78 assert(XvMCCreateBlocks(display, NULL, 1, &blocks) == XvMCBadContext);
80 assert(XvMCCreateBlocks(display, &context, 0, &blocks) == BadValue);
82 assert(XvMCCreateBlocks(display, &context, min_required_blocks, &blocks) == Success);
90 assert(XvMCCreateMacroBlocks(display, NULL, 1, ¯oblocks) == XvMCBadContext);
92 assert(XvMCCreateMacroBlocks(display, &context, 0, ¯oblocks) == BadValue);
94 assert(XvMCCreateMacroBlocks(display, &context, min_required_macroblocks, ¯oblocks) == Success);
100 assert(XvMCDestroyMacroBlocks(display, ¯oblocks) == Success);
102 assert(XvMCDestroyBlocks(display, &blocks) == Success);
104 assert(XvMCDestroySurface(display, &surface) == Success);
105 assert(XvMCDestroyContext(display, &context) == Success);
107 XvUngrabPort(display, port_num, CurrentTime);
108 XCloseDisplay(display);