Home | History | Annotate | Download | only in va

Lines Matching refs:drv

66    vlVaDriver *drv;
72 drv = VL_VA_DRIVER(ctx);
73 pipe_mutex_lock(drv->mutex);
75 vlVaSurface *surf = handle_table_get(drv->htab, surface_list[i]);
77 pipe_mutex_unlock(drv->mutex);
84 handle_table_remove(drv->htab, surface_list[i]);
86 pipe_mutex_unlock(drv->mutex);
94 vlVaDriver *drv;
101 drv = VL_VA_DRIVER(ctx);
102 if (!drv)
105 pipe_mutex_lock(drv->mutex);
106 surf = handle_table_get(drv->htab, render_target);
109 pipe_mutex_unlock(drv->mutex);
115 pipe_mutex_unlock(drv->mutex);
119 context = handle_table_get(drv->htab, surf->ctx);
121 pipe_mutex_unlock(drv->mutex);
140 pipe_mutex_unlock(drv->mutex);
183 vlVaPutSubpictures(vlVaSurface *surf, vlVaDriver *drv,
205 buf = handle_table_get(drv->htab, sub->image->buf);
255 blend_state = drv->pipe->create_blend_state(drv->pipe, &blend);
257 vl_compositor_clear_layers(&drv->cstate);
258 vl_compositor_set_layer_blend(&drv->cstate, 0, blend_state, false);
259 upload_sampler(drv->pipe, sub->sampler, &box, buf->data,
261 vl_compositor_set_rgba_layer(&drv->cstate, &drv->compositor, 0, sub->sampler,
263 vl_compositor_set_layer_dst_area(&drv->cstate, 0, &dr);
264 vl_compositor_render(&drv->cstate, &drv->compositor, surf_draw, dirty_area, false);
265 drv->pipe->delete_blend_state(drv->pipe, blend_state);
277 vlVaDriver *drv;
290 drv = VL_VA_DRIVER(ctx);
291 pipe_mutex_lock(drv->mutex);
292 surf = handle_table_get(drv->htab, surface_id);
294 pipe_mutex_unlock(drv->mutex);
298 screen = drv->pipe->screen;
299 vscreen = drv->vscreen;
303 pipe_mutex_unlock(drv->mutex);
311 surf_draw = drv->pipe->create_surface(drv->pipe, tex, &surf_templ);
314 pipe_mutex_unlock(drv->mutex);
323 vl_compositor_clear_layers(&drv->cstate);
324 vl_compositor_set_buffer_layer(&drv->cstate, &drv->compositor, 0, surf->buffer, &src_rect, NULL, VL_COMPOSITOR_WEAVE);
325 vl_compositor_set_layer_dst_area(&drv->cstate, 0, &dst_rect);
326 vl_compositor_render(&drv->cstate, &drv->compositor, surf_draw, dirty_area, true);
328 status = vlVaPutSubpictures(surf, drv, surf_draw, dirty_area, &src_rect, &dst_rect);
330 pipe_mutex_unlock(drv->mutex);
337 drv->pipe->flush(drv->pipe, NULL, 0);
345 pipe_mutex_unlock(drv->mutex);
375 vlVaDriver *drv;
397 drv = VL_VA_DRIVER(ctx);
399 if (!drv)
402 pipe_mutex_lock(drv->mutex);
403 config = handle_table_get(drv->htab, config_id);
404 pipe_mutex_unlock(drv->mutex);
494 vlVaDriver *drv;
505 drv = VL_VA_DRIVER(ctx);
553 surface->buffer = vl_video_buffer_create_ex2(drv->pipe, templat, resources);
558 surfaces[index] = handle_table_add(drv->htab, surface);
574 vlVaDriver *drv;
589 drv = VL_VA_DRIVER(ctx);
591 if (!drv)
689 pipe_mutex_lock(drv->mutex);
707 surf->buffer = drv->pipe->create_video_buffer(drv->pipe, &templat);
713 surfaces[i] = handle_table_add(drv->htab, surf);
726 pipe_mutex_unlock(drv->mutex);
731 pipe_mutex_unlock(drv->mutex);