[vlc-commits] freetype: add BGRA support
Rémi Denis-Courmont
git at videolan.org
Thu Dec 20 19:43:14 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 23:56:51 2018 +0200| [ea41e8921c21365ae833ec2f784961a79f902bf9] | committer: Rémi Denis-Courmont
freetype: add BGRA support
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea41e8921c21365ae833ec2f784961a79f902bf9
---
modules/text_renderer/freetype/freetype.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/text_renderer/freetype/freetype.c b/modules/text_renderer/freetype/freetype.c
index 92f90c9f0b..4586ee2bbe 100644
--- a/modules/text_renderer/freetype/freetype.c
+++ b/modules/text_renderer/freetype/freetype.c
@@ -1347,10 +1347,11 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region_out,
YUVFromRGB,
FillYUVAPicture,
BlendYUVAPixel );
- else if( *p_chroma == VLC_CODEC_RGBA )
+ else if( *p_chroma == VLC_CODEC_RGBA
+ || *p_chroma == VLC_CODEC_BGRA )
rv = RenderAXYZ( p_filter, p_region_out, text_block.p_laid,
®ionbbox, &paddedbbox, &bbox,
- VLC_CODEC_RGBA,
+ *p_chroma,
&p_region_out->fmt,
RGBFromRGB,
FillRGBAPicture,
More information about the vlc-commits
mailing list