I'm not sure where to put this issue, but as this series seems to have some effect on it, here it is :<div><br></div><div>I am trying to play a mpeg2 video with a 4:2:2 subsampling using mplayer, with vdpau video output and regular ffmpeg12 video codec (the mesa mpeg2 decoder cannot handle 4:2:2 subsampling anyway if I read previous discussions right ?).</div>
<div><br></div>
<div>With lateset mesa git master I had completly borked output and this error :</div><div>[vdpau] Error when calling vdp_video_surface_put_bits_y_cb_cr: No backend implementation could be loaded.</div><div><div><br></div>
<div>With the previous series of 9 patches I had that output :</div><div><a href="http://img9.imageshack.us/img9/7447/yv422bug.png" target="_blank">http://img9.imageshack.us/img9/7447/yv422bug.png</a></div></div><div><br>
</div><div><div>With today series I get that output :</div><div><a href="http://img807.imageshack.us/img807/5593/cran07032012184105.png" target="_blank">http://img807.imageshack.us/img807/5593/cran07032012184105.png</a></div>
</div><div><br></div><div><br></div><div>By the way something seemed wrong while reading mplayer's log :</div><div>(the use of the software scaler and the "DRI failure")</div><div><br>
</div><div><div>Starting playback...</div><div>Could not find matching colorspace - retrying with -vf scale...</div><div>Opening video filter: [scale]</div><div>Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.</div>
<div>[swscaler @ 0x1001140]using unscaled yuv422p -> yuyv422 special converter</div><div>VO: [vdpau] 1920x1080 => 1920x1080 Packed YUY2 </div><div>[mpeg2video @ 0xf50700]warning: first frame is no keyframe</div><div>
[VD_FFMPEG] DRI failure.</div><div>V: 11.5 2/ 2 ??% ??% ??,?% 0 0 </div><div>[mpeg2video @ 0xf50700]warning: first frame is no keyframe</div><div>V: 16.6 125/125 21% 6% 0.0% 0 0 </div><div><br></div></div><div><br>
</div><div>Emeric</div>
<div><br><div class="gmail_quote">2012/3/7 Christian König <span dir="ltr"><<a href="mailto:deathsimple@vodafone.de" target="_blank">deathsimple@vodafone.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>Signed-off-by: Christian König <<a href="mailto:deathsimple@vodafone.de" target="_blank">deathsimple@vodafone.de</a>><br>
---<br>
src/gallium/state_trackers/vdpau/query.c | 22 ++++++++++++++++++----<br>
1 files changed, 18 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/src/gallium/state_trackers/vdpau/query.c b/src/gallium/state_trackers/vdpau/query.c<br>
index 9d40834..2b13ce1 100644<br>
--- a/src/gallium/state_trackers/vdpau/query.c<br>
+++ b/src/gallium/state_trackers/vdpau/query.c<br>
@@ -87,9 +87,6 @@ vlVdpVideoSurfaceQueryCapabilities(VdpDevice device, VdpChromaType surface_chrom<br>
<br>
/* XXX: Current limits */<br>
*is_supported = true;<br>
- if (surface_chroma_type != VDP_CHROMA_TYPE_420)<br>
- *is_supported = false;<br>
-<br>
max_2d_texture_level = pscreen->get_param(pscreen, PIPE_CAP_MAX_TEXTURE_2D_LEVELS);<br>
pipe_mutex_unlock(dev->mutex);<br>
if (!max_2d_texture_level)<br>
@@ -124,7 +121,24 @@ vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities(VdpDevice device, VdpChromaTyp<br>
return VDP_STATUS_RESOURCES;<br>
<br>
pipe_mutex_lock(dev->mutex);<br>
- *is_supported = pscreen->is_video_format_supported<br>
+<br>
+ switch(bits_ycbcr_format) {<br>
+ case VDP_YCBCR_FORMAT_UYVY:<br>
+ case VDP_YCBCR_FORMAT_YUYV:<br>
+ *is_supported = surface_chroma_type == VDP_CHROMA_TYPE_422;<br>
+ break;<br>
+<br>
+ case VDP_YCBCR_FORMAT_Y8U8V8A8:<br>
+ case VDP_YCBCR_FORMAT_V8U8Y8A8:<br>
+ *is_supported = surface_chroma_type == VDP_CHROMA_TYPE_444;<br>
+ break;<br>
+<br>
+ default:<br>
+ *is_supported = true;<br>
+ break;<br>
+ }<br>
+<br>
+ *is_supported &= pscreen->is_video_format_supported<br>
(<br>
pscreen,<br>
FormatYCBCRToPipe(bits_ycbcr_format),<br>
--<br>
1.7.5.4<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div>