From: Antoine Cellerier Date: Mon, 2 Apr 2007 20:58:14 +0000 (+0000) Subject: Use I420 image buffers instead of YUVA for mosaic bridge. Impact on CPU usage for... X-Git-Tag: 0.9.0-test0~7868 X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=602d3bac845de6eb84a091ce30979b6886836b52;hp=1106a14087d306e0d1951fd57ab527332d086615 Use I420 image buffers instead of YUVA for mosaic bridge. Impact on CPU usage for test case (people.videolan.org/~dionoea/mosaic/ basically a 6x5 mosaic displayed locally) is 155% -> 85% if alpha == 255, 166% -> 110% if alpha == 128. --- diff --git a/modules/stream_out/mosaic_bridge.c b/modules/stream_out/mosaic_bridge.c index f109de6479..7d9595c211 100644 --- a/modules/stream_out/mosaic_bridge.c +++ b/modules/stream_out/mosaic_bridge.c @@ -438,7 +438,11 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id, memset( &fmt_out, 0, sizeof(video_format_t) ); fmt_in = p_sys->p_decoder->fmt_out.video; +#if 0 fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A'); +#else + fmt_out.i_chroma = VLC_FOURCC('I','4','2','0'); +#endif if ( !p_sys->i_height ) {