[vlc-devel] commit: If mosaic item has an alpha plane keep it even after resizing the picture. (Antoine Cellerier )

git version control git at videolan.org
Sun Aug 24 15:57:42 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sun Aug 24 16:00:37 2008 +0200| [7c1477a31779e86d8ac064a4837a9291b6c7ac39] | committer: Antoine Cellerier 

If mosaic item has an alpha plane keep it even after resizing the picture.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c1477a31779e86d8ac064a4837a9291b6c7ac39
---

 modules/video_filter/mosaic.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/mosaic.c b/modules/video_filter/mosaic.c
index 379b25e..9dc28d7 100644
--- a/modules/video_filter/mosaic.c
+++ b/modules/video_filter/mosaic.c
@@ -597,7 +597,11 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
             fmt_in.i_height = p_es->p_picture->format.i_height;
             fmt_in.i_width = p_es->p_picture->format.i_width;
 
-            fmt_out.i_chroma = VLC_FOURCC('I','4','2','0');
+            if( fmt_in.i_chroma == VLC_FOURCC('Y','U','V','A') ||
+                fmt_in.i_chroma == VLC_FOURCC('R','G','B','A') )
+                fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A');
+            else
+                fmt_out.i_chroma = VLC_FOURCC('I','4','2','0');
             fmt_out.i_width = col_inner_width;
             fmt_out.i_height = row_inner_height;
 




More information about the vlc-devel mailing list