scale: add support for ARGB
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 5 Nov 2013 20:31:52 +0000 (22:31 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 7 Nov 2013 20:09:53 +0000 (22:09 +0200)
modules/video_filter/scale.c

index d69a55e..a812fbb 100644 (file)
@@ -61,7 +61,8 @@ static int OpenFilter( vlc_object_t *p_this )
           p_filter->fmt_in.video.i_chroma != VLC_CODEC_I420 &&
           p_filter->fmt_in.video.i_chroma != VLC_CODEC_YV12 &&
           p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGB32 &&
-          p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGBA ) ||
+          p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGBA &&
+          p_filter->fmt_in.video.i_chroma != VLC_CODEC_ARGB ) ||
         p_filter->fmt_in.video.i_chroma != p_filter->fmt_out.video.i_chroma )
     {
         return VLC_EGENERIC;
@@ -106,6 +107,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     }
 
     if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGBA &&
+        p_filter->fmt_in.video.i_chroma != VLC_CODEC_ARGB &&
         p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGB32 )
     {
         for( i_plane = 0; i_plane < p_pic_dst->i_planes; i_plane++ )