mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
d3d11overlaycompositor: fix texture width and height
The dimension of the overlay texture directly corresponds to the size of the overlay **buffer** which is given by its video meta. The dimension at which the overlay should be displayed directly correspond to the overlay `render_width`and `render_height`. This match the behavior of glimagesink Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4053>
This commit is contained in:
parent
5cf989fc06
commit
c34ac2a3e8
1 changed files with 2 additions and 2 deletions
|
@ -211,8 +211,8 @@ gst_d3d11_composition_overlay_new (GstD3D11OverlayCompositor * self,
|
||||||
subresource_data.SysMemPitch = stride;
|
subresource_data.SysMemPitch = stride;
|
||||||
subresource_data.SysMemSlicePitch = 0;
|
subresource_data.SysMemSlicePitch = 0;
|
||||||
|
|
||||||
texture_desc.Width = width;
|
texture_desc.Width = vmeta->width;
|
||||||
texture_desc.Height = height;
|
texture_desc.Height = vmeta->height;
|
||||||
texture_desc.MipLevels = 1;
|
texture_desc.MipLevels = 1;
|
||||||
texture_desc.ArraySize = 1;
|
texture_desc.ArraySize = 1;
|
||||||
texture_desc.Format = DXGI_FORMAT_B8G8R8A8_UNORM;
|
texture_desc.Format = DXGI_FORMAT_B8G8R8A8_UNORM;
|
||||||
|
|
Loading…
Reference in a new issue