On 24 June 2014 21:27, Jean-Yves Avenard <jyaven...@gmail.com> wrote:
> On my laptop, 11" macbook air with haswell i6-4650U with HD5000 > graphic adapter. It has a 1366x768 screen. The resolution of the > screen is probably irrelevant as it doesn't matter the size of the > window I'm displaying to, it always exhibit the same behaviour. > > To have a 1440x1080 video properly scaled, I need to call vaPutSurface with: > va_status = vaPutSurface(m_display->m_va_disp, surface, > pic->m_pixmap, > 0, 0, > m_size.width(), m_size.height(), > 0, 0, > 1014, 576, //m_size.width(), m_size.height(), > NULL, 0, > field); > > m_size.width() return 1440, and m_size.height() returns 1080. > The texture and XPixmap created are also 1440x1080 (same size as the > video being played) > Interestingly, I'm seeing the same behaviour using vaCopySurfaceGLX and AMD's vaapi drivers. Works fine with Intel drivers... I'm starting more and more to suspect an issue in libva... _______________________________________________ Libva mailing list Libva@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libva