[vlc-commits] swscale: handle 4:2:0 and 4:2:2 YUVA formats
Rafaël Carré
git at videolan.org
Tue Dec 10 18:41:44 CET 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Dec 10 12:35:14 2013 -0500| [c7b8f0b84927feb1621c2685720dbec1bc17538b] | committer: Rafaël Carré
swscale: handle 4:2:0 and 4:2:2 YUVA formats
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c7b8f0b84927feb1621c2685720dbec1bc17538b
---
modules/video_chroma/swscale.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/video_chroma/swscale.c b/modules/video_chroma/swscale.c
index 3d7dfb3..1751131 100644
--- a/modules/video_chroma/swscale.c
+++ b/modules/video_chroma/swscale.c
@@ -254,6 +254,14 @@ static void FixParameters( int *pi_fmt, bool *pb_has_a, bool *pb_swap_uv, vlc_fo
{
switch( fmt )
{
+ case VLC_CODEC_YUV422A:
+ *pi_fmt = PIX_FMT_YUV422P;
+ *pb_has_a = true;
+ break;
+ case VLC_CODEC_YUV420A:
+ *pi_fmt = PIX_FMT_YUV420P;
+ *pb_has_a = true;
+ break;
case VLC_CODEC_YUVA:
*pi_fmt = PIX_FMT_YUV444P;
*pb_has_a = true;
More information about the vlc-commits
mailing list