Lines Matching defs:drv
66 vlVaDriver *drv;
72 drv = VL_VA_DRIVER(ctx);
73 mtx_lock(&drv->mutex);
75 vlVaSurface *surf = handle_table_get(drv->htab, surface_list[i]);
77 mtx_unlock(&drv->mutex);
84 handle_table_remove(drv->htab, surface_list[i]);
86 mtx_unlock(&drv->mutex);
94 vlVaDriver *drv;
101 drv = VL_VA_DRIVER(ctx);
102 if (!drv)
105 mtx_lock(&drv->mutex);
106 surf = handle_table_get(drv->htab, render_target);
109 mtx_unlock(&drv->mutex);
115 mtx_unlock(&drv->mutex);
119 context = handle_table_get(drv->htab, surf->ctx);
121 mtx_unlock(&drv->mutex);
142 mtx_unlock(&drv->mutex);
149 vlVaDriver *drv;
156 drv = VL_VA_DRIVER(ctx);
157 if (!drv)
160 mtx_lock(&drv->mutex);
162 surf = handle_table_get(drv->htab, render_target);
164 mtx_unlock(&drv->mutex);
168 context = handle_table_get(drv->htab, surf->ctx);
170 mtx_unlock(&drv->mutex);
181 mtx_unlock(&drv->mutex);
216 vlVaPutSubpictures(vlVaSurface *surf, vlVaDriver *drv,
238 buf = handle_table_get(drv->htab, sub->image->buf);
288 blend_state = drv->pipe->create_blend_state(drv->pipe, &blend);
290 vl_compositor_clear_layers(&drv->cstate);
291 vl_compositor_set_layer_blend(&drv->cstate, 0, blend_state, false);
292 upload_sampler(drv->pipe, sub->sampler, &box, buf->data,
294 vl_compositor_set_rgba_layer(&drv->cstate, &drv->compositor, 0, sub->sampler,
296 vl_compositor_set_layer_dst_area(&drv->cstate, 0, &dr);
297 vl_compositor_render(&drv->cstate, &drv->compositor, surf_draw, dirty_area, false);
298 drv->pipe->delete_blend_state(drv->pipe, blend_state);
310 vlVaDriver *drv;
324 drv = VL_VA_DRIVER(ctx);
325 mtx_lock(&drv->mutex);
326 surf = handle_table_get(drv->htab, surface_id);
328 mtx_unlock(&drv->mutex);
332 screen = drv->pipe->screen;
333 vscreen = drv->vscreen;
337 mtx_unlock(&drv->mutex);
345 surf_draw = drv->pipe->create_surface(drv->pipe, tex, &surf_templ);
348 mtx_unlock(&drv->mutex);
359 vl_compositor_clear_layers(&drv->cstate);
366 vl_compositor_set_rgba_layer(&drv->cstate, &drv->compositor, 0, views[0], &src_rect, NULL, NULL);
368 vl_compositor_set_buffer_layer(&drv->cstate, &drv->compositor, 0, surf->buffer, &src_rect, NULL, VL_COMPOSITOR_WEAVE);
370 vl_compositor_set_layer_dst_area(&drv->cstate, 0, &dst_rect);
371 vl_compositor_render(&drv->cstate, &drv->compositor, surf_draw, dirty_area, true);
373 status = vlVaPutSubpictures(surf, drv, surf_draw, dirty_area, &src_rect, &dst_rect);
375 mtx_unlock(&drv->mutex);
382 drv->pipe->flush(drv->pipe, NULL, 0);
384 screen->flush_frontbuffer(screen, drv->pipe, tex, 0, 0,
390 mtx_unlock(&drv->mutex);
420 vlVaDriver *drv;
442 drv = VL_VA_DRIVER(ctx);
444 if (!drv)
447 mtx_lock(&drv->mutex);
448 config = handle_table_get(drv->htab, config_id);
449 mtx_unlock(&drv->mutex);
517 if (drv->pipe->create_video_buffer_with_modifiers) {
581 vlVaDriver *drv;
591 drv = VL_VA_DRIVER(ctx);
651 surface->buffer = vl_video_buffer_create_ex2(drv->pipe, templat, resources);
669 vlVaDriver *drv;
680 drv = VL_VA_DRIVER(ctx);
771 surface->buffer = vl_video_buffer_create_ex2(drv->pipe, templat, resources);
786 vlVaHandleSurfaceAllocate(vlVaDriver *drv, vlVaSurface *surface,
795 if (!drv->pipe->create_video_buffer_with_modifiers)
798 drv->pipe->create_video_buffer_with_modifiers(drv->pipe, templat,
802 surface->buffer = drv->pipe->create_video_buffer(drv->pipe, templat);
817 drv->pipe->clear_render_target(drv->pipe, surfaces[i], &c, 0, 0,
821 drv->pipe->flush(drv->pipe, NULL, 0);
832 vlVaDriver *drv;
855 drv = VL_VA_DRIVER(ctx);
857 if (!drv)
990 mtx_lock(&drv->mutex);
1010 vaStatus = vlVaHandleSurfaceAllocate(drv, surf, &templat, modifiers,
1032 surfaces[i] = handle_table_add(drv->htab, surf);
1038 mtx_unlock(&drv->mutex);
1049 mtx_unlock(&drv->mutex);
1275 vlVaDriver *drv;
1288 drv = VL_VA_DRIVER(ctx);
1290 mtx_lock(&drv->mutex);
1292 surf = handle_table_get(drv->htab, surface_id);
1294 mtx_unlock(&drv->mutex);
1305 ret = vlVaHandleSurfaceAllocate(drv, surf, &surf->templat, NULL, 0);
1307 mtx_unlock(&drv->mutex);
1316 vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor,
1354 if (!screen->resource_get_handle(screen, drv->pipe, resource,
1396 mtx_unlock(&drv->mutex);
1404 mtx_unlock(&drv->mutex);