[Mesa-dev] [Bug 97261] vaapi u/v wrong order since vl/util: add copy func for yv12image to nv12surface

Zhang, Boyuan Boyuan.Zhang at amd.com
Thu Sep 8 22:31:14 UTC 2016


Hi Andy,

I verified the bug. You are correct. The u and v are inversed. I checked your patch, and confirmed it fixes the issue. Patch is Reviewed-by: Boyuan Zhang <boyuan.zhang at amd.com>
Thanks a lot for the help!

Regards,
Boyuan

From: mesa-dev [mailto:mesa-dev-bounces at lists.freedesktop.org] On Behalf Of bugzilla-daemon at freedesktop.org
Sent: August-09-16 9:52 AM
To: mesa-dev at lists.freedesktop.org
Subject: [Mesa-dev] [Bug 97261] vaapi u/v wrong order since vl/util: add copy func for yv12image to nv12surface

Bug ID

97261<https://bugs.freedesktop.org/show_bug.cgi?id=97261>

Summary

vaapi u/v wrong order since vl/util: add copy func for yv12image to nv12surface

Product

Mesa

Version

git

Hardware

Other

OS

All

Status

NEW

Severity

normal

Priority

medium

Component

Mesa core

Assignee

mesa-dev at lists.freedesktop.org<mailto:mesa-dev at lists.freedesktop.org>

Reporter

adf.lists at gmail.com<mailto:adf.lists at gmail.com>

QA Contact

mesa-dev at lists.freedesktop.org<mailto:mesa-dev at lists.freedesktop.org>


Created attachment 125638<attachment.cgi?id=125638> [details]<attachment.cgi?id=125638&action=edit>

small test vid



As noted st the time, though Boyuan said he couldn't reproduce, for me



vl/util: add copy func for yv12image to nv12surface



gets u and v for both yv12 and I420 inputs reversed whether encoding or

playing.



Both gstreamer and mpv affected.



Testing playback using attached small test vid that instantly shows the issue

either



VAAPI_DISABLE_INTERLACE=true mpv --vo=vaapi uvtest.mkv



or



gst-launch-1.0 filesrc location=uvtest.mkv ! matroskademux ! avdec_h264 !

vaapisink



Of course any test that outputs nv12 works OK as it avoids the conversion.



It seems that the new util function expects input to be yuv, but it actually

gets yvu.



I sent a patch to the list for this -



https://lists.freedesktop.org/archives/mesa-dev/2016-July/124695.html



Filing bug/test to see if anyone else reproduce.

________________________________
You are receiving this mail because:

  *   You are the QA Contact for the bug.
  *   You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160908/ca3e2d5e/attachment-0001.html>


More information about the mesa-dev mailing list