Lines Matching defs:display

136 	Display			*display;
154 display = XOpenDisplay(NULL);
158 display,
170 XCloseDisplay(display);
176 Atom xv_colorkey = XInternAtom(display, "XV_COLORKEY", 0);
177 XvGetPortAttribute(display, port_num, xv_colorkey, &colorkey);
180 root = XDefaultRootWindow(display);
181 window = XCreateSimpleWindow(display, root, 0, 0, output_width, output_height, 0, 0, colorkey);
183 assert(XvMCCreateContext(display, port_num, surface_type_id, INPUT_WIDTH, INPUT_HEIGHT, XVMC_DIRECT, &context) == Success);
184 assert(XvMCCreateSurface(display, &context, &surface) == Success);
185 assert(XvMCCreateBlocks(display, &context, NUM_MACROBLOCKS * BLOCKS_PER_MACROBLOCK, &block_array) == Success);
186 assert(XvMCCreateMacroBlocks(display, &context, NUM_MACROBLOCKS, &mb_array) == Success);
259 XSelectInput(display, window, ExposureMask | KeyPressMask);
260 XMapWindow(display, window);
261 XSync(display, 0);
264 assert(XvMCRenderSurface(display, NULL, XVMC_FRAME_PICTURE, &surface, NULL, NULL, 0, NUM_MACROBLOCKS, 0, &mb_array, &block_array) == XvMCBadContext);
266 assert(XvMCRenderSurface(display, &context, XVMC_FRAME_PICTURE, NULL, NULL, NULL, 0, NUM_MACROBLOCKS, 0, &mb_array, &block_array) == XvMCBadSurface);
268 assert(XvMCRenderSurface(display, &context, 0, &surface, NULL, NULL, 0, NUM_MACROBLOCKS, 0, &mb_array, &block_array) == BadValue);
270 assert(XvMCRenderSurface(display, &context, XVMC_FRAME_PICTURE, &surface, NULL, NULL, 0, NUM_MACROBLOCKS, 0, &mb_array, &block_array) == Success);
273 assert(XvMCPutSurface(display, NULL, window, 0, 0, INPUT_WIDTH, INPUT_HEIGHT, 0, 0, output_width, output_height, XVMC_FRAME_PICTURE) == XvMCBadSurface);
276 /*assert(XvMCPutSurface(display, &surface, 0, 0, 0, width, height, 0, 0, width, height, XVMC_FRAME_PICTURE) == BadDrawable);*/
284 if (XPending(display) > 0)
288 XNextEvent(display, &event);
299 display, &surface, window,
317 assert(XvMCDestroyBlocks(display, &block_array) == Success);
318 assert(XvMCDestroyMacroBlocks(display, &mb_array) == Success);
319 assert(XvMCDestroySurface(display, &surface) == Success);
320 assert(XvMCDestroyContext(display, &context) == Success);
322 XvUngrabPort(display, port_num, CurrentTime);
323 XDestroyWindow(display, window);
324 XCloseDisplay(display);