[vlc-commits] i420_yuy2: simplification

Lyndon Brown git at videolan.org
Wed Mar 6 17:13:37 CET 2019


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Tue Jan 22 07:02:03 2019 +0000| [38c0e8cefc14e7c14eda5c0a209fdd7aae78a265] | committer: Jean-Baptiste Kempf

i420_yuy2: simplification

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_chroma/i420_yuy2.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c
index 626e2d916d..34fae3eb74 100644
--- a/modules/video_chroma/i420_yuy2.c
+++ b/modules/video_chroma/i420_yuy2.c
@@ -303,20 +303,17 @@ static void I420_YUY2( filter_t *p_filter, picture_t *p_source,
         p_y1 = p_y2;
         p_y2 += p_source->p[Y_PLANE].i_pitch;
 
-#if !defined (MODULE_NAME_IS_i420_yuy2_mmx)
         for( i_x = (p_filter->fmt_in.video.i_x_offset + p_filter->fmt_in.video.i_visible_width) / 8; i_x-- ; )
         {
+#if !defined (MODULE_NAME_IS_i420_yuy2_mmx)
             C_YUV420_YUYV( );
             C_YUV420_YUYV( );
             C_YUV420_YUYV( );
             C_YUV420_YUYV( );
-        }
 #else
-        for( i_x = (p_filter->fmt_in.video.i_x_offset + p_filter->fmt_in.video.i_visible_width) / 8 ; i_x-- ; )
-        {
             MMX_CALL( MMX_YUV420_YUYV );
-        }
 #endif
+        }
         for( i_x = ( (p_filter->fmt_in.video.i_x_offset + p_filter->fmt_in.video.i_visible_width) % 8 ) / 2; i_x-- ; )
         {
             C_YUV420_YUYV( );



More information about the vlc-commits mailing list