[vlc-commits] commit: swscale: Support RGB565 in swscale. (Pierre d'Herbemont )

git at videolan.org git at videolan.org
Sun Oct 31 11:17:45 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sun Oct 31 10:17:42 2010 +0100| [103ae418b44980c0cabd211cd18d10ed87a994f4] | committer: Pierre d'Herbemont 

swscale: Support RGB565 in swscale.

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

 modules/video_filter/swscale.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/video_filter/swscale.c b/modules/video_filter/swscale.c
index c38f9d2..9a17c48 100644
--- a/modules/video_filter/swscale.c
+++ b/modules/video_filter/swscale.c
@@ -278,6 +278,9 @@ static void FixParameters( int *pi_fmt, bool *pb_has_a, bool *pb_swap_uv, vlc_fo
         *pi_fmt = PIX_FMT_YUV410P;
         *pb_swap_uv = true;
         break;
+    case VLC_CODEC_RGB16:
+        *pi_fmt = PIX_FMT_RGB565;
+        break;
     default:
         break;
     }



More information about the vlc-commits mailing list