X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_chroma%2Fi420_yuy2.c;h=3e5ee5571a161cf84cd8c26851148cd2fcf1cf00;hb=6ee1e193fd896ab9a4729fde14f009d9ce629815;hp=dc08896f5eb39733e045675b5eba6b3f3d761d66;hpb=a3883709fd734bf346753e0b1866188477854381;p=vlc diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c index dc08896f5e..3e5ee5571a 100644 --- a/modules/video_chroma/i420_yuy2.c +++ b/modules/video_chroma/i420_yuy2.c @@ -25,8 +25,6 @@ /***************************************************************************** * Preamble *****************************************************************************/ -#include /* strerror() */ -#include /* malloc(), free() */ #include #include @@ -316,12 +314,12 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source, #else // defined(MODULE_NAME_IS_i420_yuy2_sse2) /* - ** SSE2 128 bits fetch/store instructions are faster + ** SSE2 128 bits fetch/store instructions are faster ** if memory access is 16 bytes aligned */ if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| - ((int)p_line2|(int)p_y2))) ) + ((intptr_t)p_line2|(intptr_t)p_y2))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = p_vout->render.i_height / 2 ; i_y-- ; ) @@ -527,11 +525,11 @@ static void I420_YVYU( vout_thread_t *p_vout, picture_t *p_source, #else // defined(MODULE_NAME_IS_i420_yuy2_sse2) /* - ** SSE2 128 bits fetch/store instructions are faster + ** SSE2 128 bits fetch/store instructions are faster ** if memory access is 16 bytes aligned */ if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| - ((int)p_line2|(int)p_y2))) ) + ((intptr_t)p_line2|(intptr_t)p_y2))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = p_vout->render.i_height / 2 ; i_y-- ; ) @@ -736,11 +734,11 @@ static void I420_UYVY( vout_thread_t *p_vout, picture_t *p_source, #else // defined(MODULE_NAME_IS_i420_yuy2_sse2) /* - ** SSE2 128 bits fetch/store instructions are faster + ** SSE2 128 bits fetch/store instructions are faster ** if memory access is 16 bytes aligned */ if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| - ((int)p_line2|(int)p_y2))) ) + ((intptr_t)p_line2|(intptr_t)p_y2))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = p_vout->render.i_height / 2 ; i_y-- ; ) @@ -876,11 +874,11 @@ static void I420_cyuv( vout_thread_t *p_vout, picture_t *p_source, #else // defined(MODULE_NAME_IS_i420_yuy2_sse2) /* - ** SSE2 128 bits fetch/store instructions are faster + ** SSE2 128 bits fetch/store instructions are faster ** if memory access is 16 bytes aligned */ if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| - ((int)p_line2|(int)p_y2))) ) + ((intptr_t)p_line2|(intptr_t)p_y2))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = p_vout->render.i_height / 2 ; i_y-- ; )