• Home
  • Raw
  • Download

Lines Matching refs:drv

66    vlVaDriver *drv;  in vlVaDestroySurfaces()  local
72 drv = VL_VA_DRIVER(ctx); in vlVaDestroySurfaces()
73 mtx_lock(&drv->mutex); in vlVaDestroySurfaces()
75 vlVaSurface *surf = handle_table_get(drv->htab, surface_list[i]); in vlVaDestroySurfaces()
77 mtx_unlock(&drv->mutex); in vlVaDestroySurfaces()
84 handle_table_remove(drv->htab, surface_list[i]); in vlVaDestroySurfaces()
86 mtx_unlock(&drv->mutex); in vlVaDestroySurfaces()
94 vlVaDriver *drv; in vlVaSyncSurface() local
101 drv = VL_VA_DRIVER(ctx); in vlVaSyncSurface()
102 if (!drv) in vlVaSyncSurface()
105 mtx_lock(&drv->mutex); in vlVaSyncSurface()
106 surf = handle_table_get(drv->htab, render_target); in vlVaSyncSurface()
109 mtx_unlock(&drv->mutex); in vlVaSyncSurface()
115 mtx_unlock(&drv->mutex); in vlVaSyncSurface()
119 context = handle_table_get(drv->htab, surf->ctx); in vlVaSyncSurface()
121 mtx_unlock(&drv->mutex); in vlVaSyncSurface()
142 mtx_unlock(&drv->mutex); in vlVaSyncSurface()
149 vlVaDriver *drv; in vlVaQuerySurfaceStatus() local
156 drv = VL_VA_DRIVER(ctx); in vlVaQuerySurfaceStatus()
157 if (!drv) in vlVaQuerySurfaceStatus()
160 mtx_lock(&drv->mutex); in vlVaQuerySurfaceStatus()
162 surf = handle_table_get(drv->htab, render_target); in vlVaQuerySurfaceStatus()
164 mtx_unlock(&drv->mutex); in vlVaQuerySurfaceStatus()
168 context = handle_table_get(drv->htab, surf->ctx); in vlVaQuerySurfaceStatus()
170 mtx_unlock(&drv->mutex); in vlVaQuerySurfaceStatus()
181 mtx_unlock(&drv->mutex); in vlVaQuerySurfaceStatus()
216 vlVaPutSubpictures(vlVaSurface *surf, vlVaDriver *drv, in vlVaPutSubpictures() argument
238 buf = handle_table_get(drv->htab, sub->image->buf); in vlVaPutSubpictures()
288 blend_state = drv->pipe->create_blend_state(drv->pipe, &blend); in vlVaPutSubpictures()
290 vl_compositor_clear_layers(&drv->cstate); in vlVaPutSubpictures()
291 vl_compositor_set_layer_blend(&drv->cstate, 0, blend_state, false); in vlVaPutSubpictures()
292 upload_sampler(drv->pipe, sub->sampler, &box, buf->data, in vlVaPutSubpictures()
294 vl_compositor_set_rgba_layer(&drv->cstate, &drv->compositor, 0, sub->sampler, in vlVaPutSubpictures()
296 vl_compositor_set_layer_dst_area(&drv->cstate, 0, &dr); in vlVaPutSubpictures()
297 vl_compositor_render(&drv->cstate, &drv->compositor, surf_draw, dirty_area, false); in vlVaPutSubpictures()
298 drv->pipe->delete_blend_state(drv->pipe, blend_state); in vlVaPutSubpictures()
310 vlVaDriver *drv; in vlVaPutSurface() local
324 drv = VL_VA_DRIVER(ctx); in vlVaPutSurface()
325 mtx_lock(&drv->mutex); in vlVaPutSurface()
326 surf = handle_table_get(drv->htab, surface_id); in vlVaPutSurface()
328 mtx_unlock(&drv->mutex); in vlVaPutSurface()
332 screen = drv->pipe->screen; in vlVaPutSurface()
333 vscreen = drv->vscreen; in vlVaPutSurface()
337 mtx_unlock(&drv->mutex); in vlVaPutSurface()
345 surf_draw = drv->pipe->create_surface(drv->pipe, tex, &surf_templ); in vlVaPutSurface()
348 mtx_unlock(&drv->mutex); in vlVaPutSurface()
359 vl_compositor_clear_layers(&drv->cstate); in vlVaPutSurface()
366 … vl_compositor_set_rgba_layer(&drv->cstate, &drv->compositor, 0, views[0], &src_rect, NULL, NULL); in vlVaPutSurface()
368 …vl_compositor_set_buffer_layer(&drv->cstate, &drv->compositor, 0, surf->buffer, &src_rect, NULL, V… in vlVaPutSurface()
370 vl_compositor_set_layer_dst_area(&drv->cstate, 0, &dst_rect); in vlVaPutSurface()
371 vl_compositor_render(&drv->cstate, &drv->compositor, surf_draw, dirty_area, true); in vlVaPutSurface()
373 status = vlVaPutSubpictures(surf, drv, surf_draw, dirty_area, &src_rect, &dst_rect); in vlVaPutSurface()
375 mtx_unlock(&drv->mutex); in vlVaPutSurface()
382 drv->pipe->flush(drv->pipe, NULL, 0); in vlVaPutSurface()
390 mtx_unlock(&drv->mutex); in vlVaPutSurface()
420 vlVaDriver *drv; in vlVaQuerySurfaceAttributes() local
442 drv = VL_VA_DRIVER(ctx); in vlVaQuerySurfaceAttributes()
444 if (!drv) in vlVaQuerySurfaceAttributes()
447 mtx_lock(&drv->mutex); in vlVaQuerySurfaceAttributes()
448 config = handle_table_get(drv->htab, config_id); in vlVaQuerySurfaceAttributes()
449 mtx_unlock(&drv->mutex); in vlVaQuerySurfaceAttributes()
565 vlVaDriver *drv; in surface_from_external_memory() local
575 drv = VL_VA_DRIVER(ctx); in surface_from_external_memory()
625 surface->buffer = vl_video_buffer_create_ex2(drv->pipe, templat, resources); in surface_from_external_memory()
639 vlVaHandleSurfaceAllocate(vlVaDriver *drv, vlVaSurface *surface, in vlVaHandleSurfaceAllocate() argument
645 surface->buffer = drv->pipe->create_video_buffer(drv->pipe, templat); in vlVaHandleSurfaceAllocate()
659 drv->pipe->clear_render_target(drv->pipe, surfaces[i], &c, 0, 0, in vlVaHandleSurfaceAllocate()
663 drv->pipe->flush(drv->pipe, NULL, 0); in vlVaHandleSurfaceAllocate()
674 vlVaDriver *drv; in vlVaCreateSurfaces2() local
691 drv = VL_VA_DRIVER(ctx); in vlVaCreateSurfaces2()
693 if (!drv) in vlVaCreateSurfaces2()
793 mtx_lock(&drv->mutex); in vlVaCreateSurfaces2()
813 vaStatus = vlVaHandleSurfaceAllocate(drv, surf, &templat); in vlVaCreateSurfaces2()
829 surfaces[i] = handle_table_add(drv->htab, surf); in vlVaCreateSurfaces2()
835 mtx_unlock(&drv->mutex); in vlVaCreateSurfaces2()
846 mtx_unlock(&drv->mutex); in vlVaCreateSurfaces2()
984 vlVaDriver *drv; in vlVaExportSurfaceHandle() local
999 drv = VL_VA_DRIVER(ctx); in vlVaExportSurfaceHandle()
1001 mtx_lock(&drv->mutex); in vlVaExportSurfaceHandle()
1003 surf = handle_table_get(drv->htab, surface_id); in vlVaExportSurfaceHandle()
1005 mtx_unlock(&drv->mutex); in vlVaExportSurfaceHandle()
1015 ret = vlVaHandleSurfaceAllocate(drv, surf, &surf->templat); in vlVaExportSurfaceHandle()
1017 mtx_unlock(&drv->mutex); in vlVaExportSurfaceHandle()
1026 vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor, in vlVaExportSurfaceHandle()
1087 if (!screen->resource_get_handle(screen, drv->pipe, resource, in vlVaExportSurfaceHandle()
1107 mtx_unlock(&drv->mutex); in vlVaExportSurfaceHandle()
1115 mtx_unlock(&drv->mutex); in vlVaExportSurfaceHandle()