Lines Matching refs:hwctx
199 AVVAAPIDeviceContext *hwctx = hwdev->hwctx;
209 !(hwctx->driver_quirks & AV_VAAPI_DRIVER_QUIRK_SURFACE_ATTRIBUTES)) {
211 vas = vaQuerySurfaceAttributes(hwctx->display, config->config_id,
226 vas = vaQuerySurfaceAttributes(hwctx->display, config->config_id,
360 AVVAAPIDeviceContext *hwctx = hwdev->hwctx;
368 image_count = vaMaxNumImageFormats(hwctx->display);
378 vas = vaQueryImageFormats(hwctx->display, image_list, &image_count);
405 vendor_string = vaQueryVendorString(hwctx->display);
409 if (hwctx->driver_quirks & AV_VAAPI_DRIVER_QUIRK_USER_SET) {
411 hwctx->driver_quirks);
414 hwctx->driver_quirks = 0;
424 hwctx->driver_quirks |=
457 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
463 vas = vaDestroySurfaces(hwctx->display, &surface_id, 1);
474 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
475 AVVAAPIFramesContext *avfc = hwfc->hwctx;
484 vas = vaCreateSurfaces(hwctx->display, ctx->rt_format,
499 vaDestroySurfaces(hwctx->display, &surface_id, 1);
516 AVVAAPIFramesContext *avfc = hwfc->hwctx;
518 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
535 if (!(hwctx->driver_quirks & AV_VAAPI_DRIVER_QUIRK_SURFACE_ATTRIBUTES)) {
536 int need_memory_type = !(hwctx->driver_quirks & AV_VAAPI_DRIVER_QUIRK_ATTRIB_MEMTYPE);
634 vas = vaDeriveImage(hwctx->display, test_surface_id, &test_image);
645 vaDestroyImage(hwctx->display, test_image.image_id);
668 AVVAAPIFramesContext *avfc = hwfc->hwctx;
728 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
736 vas = vaUnmapBuffer(hwctx->display, map->image.buf);
744 vas = vaPutImage(hwctx->display, surface_id, map->image.image_id,
753 vas = vaDestroyImage(hwctx->display, map->image.image_id);
765 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
801 vas = vaSyncSurface(hwctx->display, surface_id);
818 vas = vaDeriveImage(hwctx->display, surface_id, &map->image);
835 vas = vaCreateImage(hwctx->display, image_format,
845 vas = vaGetImage(hwctx->display, surface_id, 0, 0,
857 vas = vaMapBuffer(hwctx->display, map->image.buf, &address);
889 vaUnmapBuffer(hwctx->display, map->image.buf);
891 vaDestroyImage(hwctx->display, map->image.image_id);
1017 AVVAAPIDeviceContext *dst_dev = dst_fc->device_ctx->hwctx;
1037 AVVAAPIDeviceContext *dst_dev = dst_fc->device_ctx->hwctx;
1280 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
1296 vas = vaExportSurfaceHandle(hwctx->display, surface_id,
1365 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
1377 vas = vaReleaseBufferHandle(hwctx->display, mapping->image.buf);
1385 vas = vaDestroyImage(hwctx->display, mapping->image.image_id);
1398 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx;
1412 vas = vaDeriveImage(hwctx->display, surface_id,
1472 vas = vaAcquireBufferHandle(hwctx->display, mapping->image.buf,
1507 vaReleaseBufferHandle(hwctx->display, mapping->image.buf);
1509 vaDestroyImage(hwctx->display, mapping->image.image_id);
1561 AVVAAPIDeviceContext *hwctx = ctx->hwctx;
1564 if (hwctx->display)
1565 vaTerminate(hwctx->display);
1597 AVVAAPIDeviceContext *hwctx = ctx->hwctx;
1606 hwctx->display = display;
1781 AVDRMDeviceContext *src_hwctx = src_ctx->hwctx;