[vlc-commits] [Git][videolan/vlc][master] dxa9: swap UV explicitly for YV12
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Oct 19 23:46:44 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
248fc454 by Steve Lhomme at 2023-10-19T23:24:48+00:00
dxa9: swap UV explicitly for YV12
DXA9_YV12 is only used for I420, YV12 and I420_10L. The NV12 to
I420 only has swapped planes when the output is YV12.
- - - - -
1 changed file:
- modules/hw/d3d9/dxa9.c
Changes:
=====================================
modules/hw/d3d9/dxa9.c
=====================================
@@ -126,7 +126,7 @@ static void DXA9_YV12(filter_t *p_filter, picture_t *src, picture_t *dst)
__MIN(desc.Height, src->format.i_y_offset + src->format.i_visible_height),
6, p_copy_cache);
- if (dst->format.i_chroma != VLC_CODEC_I420 && dst->format.i_chroma != VLC_CODEC_I420_10L)
+ if (dst->format.i_chroma == VLC_CODEC_YV12)
picture_SwapUV(dst);
} else {
msg_Err(p_filter, "Unsupported DXA9 conversion from 0x%08X to YV12", desc.Format);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/248fc454b7f668b4dabedabd4ffb3f58a02c391e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/248fc454b7f668b4dabedabd4ffb3f58a02c391e
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list