d3d11videosink: Take into account pixel aspect ratio
authorSeungha Yang <seungha.yang@navercorp.com>
Thu, 15 Aug 2019 07:20:26 +0000 (16:20 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Thu, 15 Aug 2019 07:55:37 +0000 (16:55 +0900)
commit5909a495a7c5a0556978b8b6cf7a8b9cc92360d9
tree62c401cc9176df1d45f89f1ccd2e48ffa8b1c112
parent92dd72b7eed2ebe07e60a1b590d3e6090c2d604e
d3d11videosink: Take into account pixel aspect ratio

Fix unexpected cropping with non 1:1 pixel aspect-ratio.

The actual buffer width/height should be passed to gst_d3d11_window_render(),
instead of the calculated resolution. The width/height
values are parameters for copying d3d11 video memory.
Also, aspect-ratio should be considered on resize callback
to decide render rectangle size.
sys/d3d11/gstd3d11videosink.c
sys/d3d11/gstd3d11videosink.h
sys/d3d11/gstd3d11window.c
sys/d3d11/gstd3d11window.h