[vlc-commits] swscale: handle 4:2:0 and 4:2:2 YUVA formats
Rafaël Carré
git at videolan.org
Tue Dec 10 19:11:32 CET 2013
vlc/vlc-2.1 | branch: master | Rafaël Carré <funman at videolan.org> | Tue Dec 10 12:35:14 2013 -0500| [3e63cf3becceb07ceb6281ffcf1d2ca6f992fb74] | committer: Rafaël Carré
swscale: handle 4:2:0 and 4:2:2 YUVA formats
(cherry picked from commit c7b8f0b84927feb1621c2685720dbec1bc17538b)
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=3e63cf3becceb07ceb6281ffcf1d2ca6f992fb74
---
modules/video_filter/swscale.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/video_filter/swscale.c b/modules/video_filter/swscale.c
index 91562ce..ffe3e82 100644
--- a/modules/video_filter/swscale.c
+++ b/modules/video_filter/swscale.c
@@ -258,6 +258,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