[vlc-commits] scale: add support for BGRA

Rémi Denis-Courmont git at videolan.org
Thu Dec 20 19:43:13 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 23:41:20 2018 +0200| [2a01a9ea1fb30482c224a14bc5d6c35b3f692932] | committer: Rémi Denis-Courmont

scale: add support for BGRA

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

 modules/video_filter/scale.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/video_filter/scale.c b/modules/video_filter/scale.c
index 003369effe..46c1dae4c8 100644
--- a/modules/video_filter/scale.c
+++ b/modules/video_filter/scale.c
@@ -63,7 +63,8 @@ static int OpenFilter( vlc_object_t *p_this )
           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_ARGB ) ||
+          p_filter->fmt_in.video.i_chroma != VLC_CODEC_ARGB &&
+          p_filter->fmt_in.video.i_chroma != VLC_CODEC_BGRA ) ||
         p_filter->fmt_in.video.i_chroma != p_filter->fmt_out.video.i_chroma )
     {
         return VLC_EGENERIC;
@@ -105,6 +106,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_BGRA &&
         p_filter->fmt_in.video.i_chroma != VLC_CODEC_RGB32 )
     {
         for( int i_plane = 0; i_plane < p_pic_dst->i_planes; i_plane++ )



More information about the vlc-commits mailing list