mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Update for latest libplacebo
This commit is contained in:
parent
628bad5006
commit
a41f6b22fd
19
video.c
19
video.c
@ -5003,10 +5003,11 @@ void VideoOsdInit(void)
|
|||||||
OsdWidth = VideoWindowWidth;
|
OsdWidth = VideoWindowWidth;
|
||||||
OsdHeight = VideoWindowHeight;
|
OsdHeight = VideoWindowHeight;
|
||||||
}
|
}
|
||||||
|
//printf("\nset osd %d x %d\n",OsdWidth,OsdHeight);
|
||||||
if (posd)
|
if (posd)
|
||||||
free(posd);
|
free(posd);
|
||||||
posd = (unsigned char *)calloc((OsdWidth + 1) * (OsdHeight + 1) * 4, 1);
|
posd = (unsigned char *)calloc((OsdWidth + 1) * (OsdHeight + 1) * 4, 1);
|
||||||
|
// posd = (unsigned char *)calloc((4096 + 1) * (2160 + 1) * 4, 1);
|
||||||
VideoOsdClear();
|
VideoOsdClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5235,26 +5236,24 @@ void InitPlacebo()
|
|||||||
|
|
||||||
p->gpu = p->gl->gpu;
|
p->gpu = p->gl->gpu;
|
||||||
#else
|
#else
|
||||||
struct pl_vulkan_params params;
|
struct pl_vulkan_params params;
|
||||||
struct pl_vk_inst_params iparams = pl_vk_inst_default_params;
|
struct pl_vk_inst_params iparams = pl_vk_inst_default_params;
|
||||||
VkXcbSurfaceCreateInfoKHR xcbinfo;
|
VkXcbSurfaceCreateInfoKHR xcbinfo;
|
||||||
|
|
||||||
char xcbext[] = { "VK_KHR_xcb_surface" };
|
char xcbext[] = { "VK_KHR_xcb_surface" };
|
||||||
char surfext[] = { "VK_KHR_surface" };
|
char surfext[] = { "VK_KHR_surface" };
|
||||||
|
char *ext[2] = {&xcbext,&surfext};
|
||||||
|
|
||||||
// create Vulkan instance
|
// create Vulkan instance
|
||||||
memcpy(&iparams, &pl_vk_inst_default_params, sizeof(iparams));
|
// memcpy(&iparams, &pl_vk_inst_default_params, sizeof(iparams));
|
||||||
// iparams.debug = true;
|
// iparams.debug = true;
|
||||||
iparams.num_extensions = 2;
|
|
||||||
iparams.extensions = malloc(2 * sizeof(const char *));
|
iparams.num_extensions = 2; //extensions_count;
|
||||||
*iparams.extensions = surfext;
|
iparams.extensions = &ext;
|
||||||
iparams.debug = false;
|
iparams.debug = false;
|
||||||
*(iparams.extensions + 1) = xcbext;
|
|
||||||
|
|
||||||
p->vk_inst = pl_vk_inst_create(p->ctx, &iparams);
|
p->vk_inst = pl_vk_inst_create(p->ctx, &iparams);
|
||||||
|
|
||||||
free(iparams.extensions);
|
|
||||||
|
|
||||||
// create XCB surface for swapchain
|
// create XCB surface for swapchain
|
||||||
xcbinfo.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
|
xcbinfo.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
|
||||||
xcbinfo.pNext = NULL;
|
xcbinfo.pNext = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user