Commit 776aae9c authored by Jean-Paul Saman's avatar Jean-Paul Saman

modules/video_chroma/davinci.c: remove inefficient memset() on each video output picture.

Remove inefficient memset() on the entire output picture. Instead the
framebuffer is expected to clear the display properly on initialization
and cleanup. This patch requires commit id: 09976bb9.
parent 09976bb9
/*****************************************************************************
* davinci.c : DaVinci resizer module
*****************************************************************************
* Copyright (C) 2008 M2X BV
* Copyright (C) 2008-2010 M2X BV
* $Id$
*
* Authors: Antoine Cellerier <dionoea at videolan dot org>
......@@ -332,10 +332,7 @@ static void DAVINCI_RESIZER( filter_t *p_filter, picture_t *p_source, picture_t
if( !p_sys->b_scale &&
p_filter->fmt_out.video.i_chroma == VLC_FOURCC('U','Y','V','Y') )
{
/* Do not resize the picture to fullscreen, but center it instead.
* First make picture entirely black, then fill in the video.
*/
memset( p_dest->p->p_pixels, 0x88888888, p_dest->p->i_pitch * p_dest->p->i_visible_lines );
/* Do not resize the picture to fullscreen, but center it instead. */
for( int i_plane = 0; i_plane < p_dest->i_planes; i_plane++ )
{
if( p_source->p[i_plane].i_pitch == p_dest->p[i_plane].i_pitch )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment