st/va: set the visible image dimensions in vlVaDeriveImage
authorJulien Isorce <jisorce@oblong.com>
Wed, 8 May 2019 19:40:50 +0000 (12:40 -0700)
committerJulien Isorce <julien.isorce@gmail.com>
Fri, 10 May 2019 17:13:31 +0000 (17:13 +0000)
commit98b852cd07a80fa42336031f089bdac6e7c617d3
tree66d9741655b5bf65b25888dfd20b4fb7ce05490b
parent292187afcc9f32bde54fc1a94d81066e8bed194f
st/va: set the visible image dimensions in vlVaDeriveImage

This fixes video being rendered incorrectly.

User wants height of 360 but internally pipe_video_buffer 's height
is 368 in the test below.

Test:
  GST_GL_PLATFORM=egl gst-launch-1.0 videotestsrc ! video/x-raw, width=868, height=360, format=NV12 ! vaapipostproc ! glimagesink

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110443
Signed-off-by: Julien Isorce <jisorce@oblong.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/state_trackers/va/image.c