diff options
Diffstat (limited to 'src/xine-utils')
| -rw-r--r-- | src/xine-utils/color.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/xine-utils/color.c b/src/xine-utils/color.c index a300eb109..d01e8b649 100644 --- a/src/xine-utils/color.c +++ b/src/xine-utils/color.c @@ -61,7 +61,7 @@ * instructions), these macros will automatically map to those special * instructions. * - * $Id: color.c,v 1.24 2003/12/09 00:02:38 f1rmb Exp $ + * $Id: color.c,v 1.25 2005/01/23 23:01:13 jstembridge Exp $ */ #include "xine_internal.h" @@ -701,12 +701,9 @@ static void yv12_to_yuy2_c p_y1 = p_y2; p_y2 += y_src_pitch; - for( i_x = width / 8 ; i_x-- ; ) + for( i_x = width / 2 ; i_x-- ; ) { C_YUV420_YUYV( ); - C_YUV420_YUYV( ); - C_YUV420_YUYV( ); - C_YUV420_YUYV( ); } p_y2 += i_source_margin; @@ -734,12 +731,9 @@ static void yv12_to_yuy2_c p_y1 = p_y2; p_y2 += 2 * y_src_pitch; - for( i_x = width / 8 ; i_x-- ; ) + for( i_x = width / 2 ; i_x-- ; ) { C_YUV420_YUYV( ); - C_YUV420_YUYV( ); - C_YUV420_YUYV( ); - C_YUV420_YUYV( ); } p_y2 += i_source_margin + y_src_pitch; @@ -770,12 +764,9 @@ static void yv12_to_yuy2_c p_y1 = p_y2; p_y2 += 2 * y_src_pitch; - for( i_x = width / 8 ; i_x-- ; ) + for( i_x = width / 2 ; i_x-- ; ) { C_YUV420_YUYV( ); - C_YUV420_YUYV( ); - C_YUV420_YUYV( ); - C_YUV420_YUYV( ); } p_y2 += i_source_margin + y_src_pitch; @@ -868,6 +859,10 @@ static void yv12_to_yuy2_mmxext { MMXEXT_YUV420_YUYV( ); } + for( i_x = (width % 8) / 2 ; i_x-- ; ) + { + C_YUV420_YUYV( ); + } p_y2 += i_source_margin; p_u += i_source_u_margin; @@ -898,6 +893,10 @@ static void yv12_to_yuy2_mmxext { MMXEXT_YUV420_YUYV( ); } + for( i_x = (width % 8) / 2 ; i_x-- ; ) + { + C_YUV420_YUYV( ); + } p_y2 += i_source_margin + y_src_pitch; p_u += i_source_u_margin + u_src_pitch; @@ -931,6 +930,10 @@ static void yv12_to_yuy2_mmxext { MMXEXT_YUV420_YUYV( ); } + for( i_x = (width % 8) / 2 ; i_x-- ; ) + { + C_YUV420_YUYV( ); + } p_y2 += i_source_margin + y_src_pitch; p_u += i_source_u_margin + u_src_pitch; |
