• Home
  • Raw
  • Download

Lines Matching refs:drv

114    vlVaDriver *drv;  in VA_DRIVER_INIT_FUNC()  local
119 drv = CALLOC(1, sizeof(vlVaDriver)); in VA_DRIVER_INIT_FUNC()
120 if (!drv) in VA_DRIVER_INIT_FUNC()
125 FREE(drv); in VA_DRIVER_INIT_FUNC()
129 drv->vscreen = vl_dri3_screen_create(ctx->native_dpy, ctx->x11_screen); in VA_DRIVER_INIT_FUNC()
130 if (!drv->vscreen) in VA_DRIVER_INIT_FUNC()
131 drv->vscreen = vl_dri2_screen_create(ctx->native_dpy, ctx->x11_screen); in VA_DRIVER_INIT_FUNC()
139 FREE(drv); in VA_DRIVER_INIT_FUNC()
143 drv->vscreen = vl_drm_screen_create(drm_info->fd); in VA_DRIVER_INIT_FUNC()
147 FREE(drv); in VA_DRIVER_INIT_FUNC()
151 if (!drv->vscreen) in VA_DRIVER_INIT_FUNC()
154 drv->pipe = pipe_create_multimedia_context(drv->vscreen->pscreen); in VA_DRIVER_INIT_FUNC()
155 if (!drv->pipe) in VA_DRIVER_INIT_FUNC()
158 drv->htab = handle_table_create(); in VA_DRIVER_INIT_FUNC()
159 if (!drv->htab) in VA_DRIVER_INIT_FUNC()
162 if (!vl_compositor_init(&drv->compositor, drv->pipe)) in VA_DRIVER_INIT_FUNC()
164 if (!vl_compositor_init_state(&drv->cstate, drv->pipe)) in VA_DRIVER_INIT_FUNC()
167 vl_csc_get_matrix(VL_CSC_COLOR_STANDARD_BT_601, NULL, true, &drv->csc); in VA_DRIVER_INIT_FUNC()
168 if (!vl_compositor_set_csc_matrix(&drv->cstate, (const vl_csc_matrix *)&drv->csc, 1.0f, 0.0f)) in VA_DRIVER_INIT_FUNC()
170 (void) mtx_init(&drv->mutex, mtx_plain); in VA_DRIVER_INIT_FUNC()
172 ctx->pDriverData = (void *)drv; in VA_DRIVER_INIT_FUNC()
184 snprintf(drv->vendor_string, sizeof(drv->vendor_string), in VA_DRIVER_INIT_FUNC()
186 drv->vscreen->pscreen->get_name(drv->vscreen->pscreen)); in VA_DRIVER_INIT_FUNC()
187 ctx->str_vendor = drv->vendor_string; in VA_DRIVER_INIT_FUNC()
192 vl_compositor_cleanup_state(&drv->cstate); in VA_DRIVER_INIT_FUNC()
195 vl_compositor_cleanup(&drv->compositor); in VA_DRIVER_INIT_FUNC()
198 handle_table_destroy(drv->htab); in VA_DRIVER_INIT_FUNC()
201 drv->pipe->destroy(drv->pipe); in VA_DRIVER_INIT_FUNC()
204 drv->vscreen->destroy(drv->vscreen); in VA_DRIVER_INIT_FUNC()
207 FREE(drv); in VA_DRIVER_INIT_FUNC()
216 vlVaDriver *drv; in vlVaCreateContext() local
225 drv = VL_VA_DRIVER(ctx); in vlVaCreateContext()
226 mtx_lock(&drv->mutex); in vlVaCreateContext()
227 config = handle_table_get(drv->htab, config_id); in vlVaCreateContext()
228 mtx_unlock(&drv->mutex); in vlVaCreateContext()
247 max_supported_width = drv->vscreen->pscreen->get_video_param(drv->vscreen->pscreen, in vlVaCreateContext()
250 max_supported_height = drv->vscreen->pscreen->get_video_param(drv->vscreen->pscreen, in vlVaCreateContext()
331 mtx_lock(&drv->mutex); in vlVaCreateContext()
332 *context_id = handle_table_add(drv->htab, context); in vlVaCreateContext()
333 mtx_unlock(&drv->mutex); in vlVaCreateContext()
341 vlVaDriver *drv; in vlVaDestroyContext() local
347 drv = VL_VA_DRIVER(ctx); in vlVaDestroyContext()
348 mtx_lock(&drv->mutex); in vlVaDestroyContext()
349 context = handle_table_get(drv->htab, context_id); in vlVaDestroyContext()
351 mtx_unlock(&drv->mutex); in vlVaDestroyContext()
382 drv->pipe->delete_compute_state(drv->pipe, context->blit_cs); in vlVaDestroyContext()
388 handle_table_remove(drv->htab, context_id); in vlVaDestroyContext()
389 mtx_unlock(&drv->mutex); in vlVaDestroyContext()
397 vlVaDriver *drv; in vlVaTerminate() local
402 drv = ctx->pDriverData; in vlVaTerminate()
403 vl_compositor_cleanup_state(&drv->cstate); in vlVaTerminate()
404 vl_compositor_cleanup(&drv->compositor); in vlVaTerminate()
405 drv->pipe->destroy(drv->pipe); in vlVaTerminate()
406 drv->vscreen->destroy(drv->vscreen); in vlVaTerminate()
407 handle_table_destroy(drv->htab); in vlVaTerminate()
408 mtx_destroy(&drv->mutex); in vlVaTerminate()
409 FREE(drv); in vlVaTerminate()