Lines Matching +full:0 +full:x11

34  #include <X11/Xlib.h>
35 #include <X11/Xutil.h>
76 {0}
87 + int xv_value = 0;
92 + atom = XInternAtom(vo->x11->display, XV_DMA_CLIENT_PROP, True);
94 + XvGetPortAttribute(vo->x11->display, ctx->xv_port, atom, &xv_value);
97 + return 0;
99 + ctx->dma_client_id = 0;
111 + atom = XInternAtom(vo->x11->display, XV_DMA_CLIENT_PROP, True);
113 + XvSetPortAttribute(vo->x11->display, ctx->xv_port,
115 + XvGetPortAttribute(vo->x11->display, ctx->xv_port, atom,
128 + atom = XInternAtom(vo->x11->display, XV_DMA_CLIENT_PROP, True);
130 + XvSetPortAttribute(vo->x11->display, ctx->xv_port, atom, 0);
132 + ctx->dma_client_id = 0;
143 + atom = XInternAtom(vo->x11->display, XV_DMA_HOR_STRIDE_PROP, True);
147 + XvSetPortAttribute(vo->x11->display, ctx->xv_port, atom, hor_stride);
149 + atom = XInternAtom(vo->x11->display, XV_DMA_VER_STRIDE_PROP, True);
153 + XvSetPortAttribute(vo->x11->display, ctx->xv_port, atom, ver_stride);
159 + ctx->dma_client_id = 0;
177 + socket_fd = socket(PF_UNIX, SOCK_DGRAM, 0);
178 + if (socket_fd < 0)
184 + addr.sun_path[sizeof(addr.sun_path) - 1] = '\0';
186 + if (connect(socket_fd, (struct sockaddr *)&addr, sizeof(addr)) < 0)
197 + msg.msg_namelen = 0;
205 + sendmsg(socket_fd, &msg, 0);
208 + header->cmsg_len = CMSG_LEN(0);
209 + sendmsg(socket_fd, &msg, 0);
217 + if (socket_fd >= 0)
228 - for (i = 0; i < ctx->num_buffers; i++)
229 + for (i = 0; i < ctx->num_buffers; i++) {
231 + ctx->dma_descs[i].valid = 0;
245 + dma_desc->valid = 0;
260 + (AVDRMFrameDescriptor *)mpi->planes[0];
261 + AVDRMLayerDescriptor *layer = &desc->layers[0];
264 + dma_desc->hor_stride = layer->planes[0].pitch;
267 + dma_desc->dma_fd = desc->objects[0].fd;
277 mp_image_clear(&xv_buffer, 0, 0, xv_buffer.w, xv_buffer.h);
280 osd_draw_on_image(vo->osd, res, mpi ? mpi->pts : 0, 0, &xv_buffer);
287 ctx->fo = XvListImageFormats(x11->display, ctx->xv_port,