[vlc-commits] scale: add support for ARGB
Rémi Denis-Courmont
git at videolan.org
Thu Nov 7 22:24:23 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 5 22:31:52 2013 +0200| [91106e6a04862979b498f3cc23d14eb2057fbd5d] | committer: Rémi Denis-Courmont
scale: add support for ARGB
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=91106e6a04862979b498f3cc23d14eb2057fbd5d
---
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 d69a55e..a812fbb 100644
--- a/modules/video_filter/scale.c
+++ b/modules/video_filter/scale.c
@@ -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++ )
More information about the vlc-commits
mailing list