From: Damien Fouilleul Date: Mon, 27 Aug 2007 21:02:14 +0000 (+0000) Subject: make ptr -> int conversion 64 bit friendly X-Git-Tag: 0.9.0-test0~6102 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a56479498b8b7feeb01d6ad58110c59b7600f99e;p=vlc make ptr -> int conversion 64 bit friendly --- diff --git a/modules/video_chroma/i420_rgb16.c b/modules/video_chroma/i420_rgb16.c index 6f42891e0b..44e7a73a4a 100644 --- a/modules/video_chroma/i420_rgb16.c +++ b/modules/video_chroma/i420_rgb16.c @@ -370,8 +370,8 @@ void E_(I420_R5G5B5)( vout_thread_t *p_vout, picture_t *p_src, p_buffer = b_hscale ? p_buffer_start : p_pic; if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| p_dest->p->i_pitch| - ((int)p_y)| - ((int)p_buffer))) ) + ((intptr_t)p_y)| + ((intptr_t)p_buffer))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) @@ -611,8 +611,8 @@ void E_(I420_R5G6B5)( vout_thread_t *p_vout, picture_t *p_src, p_buffer = b_hscale ? p_buffer_start : p_pic; if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| p_dest->p->i_pitch| - ((int)p_y)| - ((int)p_buffer))) ) + ((intptr_t)p_y)| + ((intptr_t)p_buffer))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) @@ -964,8 +964,8 @@ void E_(I420_A8R8G8B8)( vout_thread_t *p_vout, picture_t *p_src, p_buffer = b_hscale ? p_buffer_start : p_pic; if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| p_dest->p->i_pitch| - ((int)p_y)| - ((int)p_buffer))) ) + ((intptr_t)p_y)| + ((intptr_t)p_buffer))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) @@ -1203,8 +1203,8 @@ void E_(I420_R8G8B8A8)( vout_thread_t *p_vout, picture_t *p_src, p_buffer = b_hscale ? p_buffer_start : p_pic; if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| p_dest->p->i_pitch| - ((int)p_y)| - ((int)p_buffer))) ) + ((intptr_t)p_y)| + ((intptr_t)p_buffer))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) @@ -1442,8 +1442,8 @@ void E_(I420_B8G8R8A8)( vout_thread_t *p_vout, picture_t *p_src, p_buffer = b_hscale ? p_buffer_start : p_pic; if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| p_dest->p->i_pitch| - ((int)p_y)| - ((int)p_buffer))) ) + ((intptr_t)p_y)| + ((intptr_t)p_buffer))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) @@ -1678,8 +1678,8 @@ void E_(I420_A8B8G8R8)( vout_thread_t *p_vout, picture_t *p_src, p_buffer = b_hscale ? p_buffer_start : p_pic; if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| p_dest->p->i_pitch| - ((int)p_y)| - ((int)p_buffer))) ) + ((intptr_t)p_y)| + ((intptr_t)p_buffer))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c index 4b1b964c1e..9b85b15fcf 100644 --- a/modules/video_chroma/i420_yuy2.c +++ b/modules/video_chroma/i420_yuy2.c @@ -319,7 +319,7 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source, */ 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-- ; ) @@ -529,7 +529,7 @@ static void I420_YVYU( vout_thread_t *p_vout, picture_t *p_source, ** 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-- ; ) @@ -738,7 +738,7 @@ static void I420_UYVY( vout_thread_t *p_vout, picture_t *p_source, ** 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-- ; ) @@ -878,7 +878,7 @@ static void I420_cyuv( vout_thread_t *p_vout, picture_t *p_source, ** 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-- ; ) diff --git a/modules/video_chroma/i422_yuy2.c b/modules/video_chroma/i422_yuy2.c index d05cb00138..fa15f0f866 100644 --- a/modules/video_chroma/i422_yuy2.c +++ b/modules/video_chroma/i422_yuy2.c @@ -161,7 +161,7 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source, #if defined (MODULE_NAME_IS_i422_yuy2_sse2) if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| - ((int)p_line|(int)p_y))) ) + ((intptr_t)p_line|(intptr_t)p_y))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = p_vout->render.i_height ; i_y-- ; ) @@ -254,7 +254,7 @@ static void I422_YVYU( vout_thread_t *p_vout, picture_t *p_source, #if defined (MODULE_NAME_IS_i422_yuy2_sse2) if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| - ((int)p_line|(int)p_y))) ) + ((intptr_t)p_line|(intptr_t)p_y))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = p_vout->render.i_height ; i_y-- ; ) @@ -347,7 +347,7 @@ static void I422_UYVY( vout_thread_t *p_vout, picture_t *p_source, #if defined (MODULE_NAME_IS_i422_yuy2_sse2) if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| - ((int)p_line|(int)p_y))) ) + ((intptr_t)p_line|(intptr_t)p_y))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = p_vout->render.i_height ; i_y-- ; ) @@ -450,7 +450,7 @@ static void I422_cyuv( vout_thread_t *p_vout, picture_t *p_source, #if defined (MODULE_NAME_IS_i422_yuy2_sse2) if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| - ((int)p_line|(int)p_y))) ) + ((intptr_t)p_line|(intptr_t)p_y))) ) { /* use faster SSE2 aligned fetch and store */ for( i_y = p_vout->render.i_height ; i_y-- ; )