Home | History | Annotate | Download | only in vdpau

Lines Matching refs:pq

44    vlVdpPresentationQueue *pq = NULL;
61 pq = CALLOC(1, sizeof(vlVdpPresentationQueue));
62 if (!pq)
65 pq->device = dev;
66 pq->drawable = pqt->drawable;
69 if (!vl_compositor_init_state(&pq->cstate, dev->context)) {
76 *presentation_queue = vlAddDataHTAB(pq);
86 FREE(pq);
96 vlVdpPresentationQueue *pq;
98 pq = vlGetDataHTAB(presentation_queue);
99 if (!pq)
102 pipe_mutex_lock(pq->device->mutex);
103 vl_compositor_cleanup_state(&pq->cstate);
104 pipe_mutex_unlock(pq->device->mutex);
107 FREE(pq);
119 vlVdpPresentationQueue *pq;
125 pq = vlGetDataHTAB(presentation_queue);
126 if (!pq)
134 pipe_mutex_lock(pq->device->mutex);
135 vl_compositor_set_clear_color(&pq->cstate, &color);
136 pipe_mutex_unlock(pq->device->mutex);
148 vlVdpPresentationQueue *pq;
154 pq = vlGetDataHTAB(presentation_queue);
155 if (!pq)
158 pipe_mutex_lock(pq->device->mutex);
159 vl_compositor_get_clear_color(&pq->cstate, &color);
160 pipe_mutex_unlock(pq->device->mutex);
177 vlVdpPresentationQueue *pq;
182 pq = vlGetDataHTAB(presentation_queue);
183 if (!pq)
186 pipe_mutex_lock(pq->device->mutex);
187 *current_time = vl_screen_get_timestamp(pq->device->vscreen, pq->drawable);
188 pipe_mutex_unlock(pq->device->mutex);
205 vlVdpPresentationQueue *pq;
216 pq = vlGetDataHTAB(presentation_queue);
217 if (!pq)
224 pipe = pq->device->context;
225 compositor = &pq->device->compositor;
226 cstate = &pq->cstate;
228 pipe_mutex_lock(pq->device->mutex);
229 tex = vl_screen_texture_from_drawable(pq->device->vscreen, pq->drawable);
231 pipe_mutex_unlock(pq->device->mutex);
235 dirty_area = vl_screen_get_dirty_area(pq->device->vscreen);
249 if (pq->device->delayed_rendering.surface == surface &&
252 // TODO: we correctly support the clipping here, but not the pq background color in the clipped area....
253 cstate = pq->device->delayed_rendering.cstate;
255 vlVdpResolveDelayedRendering(pq->device, surf_draw, dirty_area);
258 vlVdpResolveDelayedRendering(pq->device, NULL, NULL);
271 vl_screen_set_next_timestamp(pq->device->vscreen, earliest_presentation_time);
275 vl_screen_get_private(pq->device->vscreen)
290 sprintf(cmd, "xwd -id %d -silent -out vdpau_frame_%08d.xwd", (int)pq->drawable, framenum);
299 pipe_mutex_unlock(pq->device->mutex);
312 vlVdpPresentationQueue *pq;
319 pq = vlGetDataHTAB(presentation_queue);
320 if (!pq)
327 pipe_mutex_lock(pq->device->mutex);
329 screen = pq->device->vscreen->pscreen;
332 pipe_mutex_unlock(pq->device->mutex);
346 vlVdpPresentationQueue *pq;
353 pq = vlGetDataHTAB(presentation_queue);
354 if (!pq)
366 pipe_mutex_lock(pq->device->mutex);
367 screen = pq->device->vscreen->pscreen;
371 pipe_mutex_unlock(pq->device->mutex);
378 pipe_mutex_unlock(pq->device->mutex);