Commit a5647949 authored by Damien Fouilleul's avatar Damien Fouilleul

make ptr -> int conversion 64 bit friendly

parent 6878660d
...@@ -370,8 +370,8 @@ void E_(I420_R5G5B5)( vout_thread_t *p_vout, picture_t *p_src, ...@@ -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; p_buffer = b_hscale ? p_buffer_start : p_pic;
if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch|
p_dest->p->i_pitch| p_dest->p->i_pitch|
((int)p_y)| ((intptr_t)p_y)|
((int)p_buffer))) ) ((intptr_t)p_buffer))) )
{ {
/* use faster SSE2 aligned fetch and store */ /* use faster SSE2 aligned fetch and store */
for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) 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, ...@@ -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; p_buffer = b_hscale ? p_buffer_start : p_pic;
if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch|
p_dest->p->i_pitch| p_dest->p->i_pitch|
((int)p_y)| ((intptr_t)p_y)|
((int)p_buffer))) ) ((intptr_t)p_buffer))) )
{ {
/* use faster SSE2 aligned fetch and store */ /* use faster SSE2 aligned fetch and store */
for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) 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, ...@@ -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; p_buffer = b_hscale ? p_buffer_start : p_pic;
if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch|
p_dest->p->i_pitch| p_dest->p->i_pitch|
((int)p_y)| ((intptr_t)p_y)|
((int)p_buffer))) ) ((intptr_t)p_buffer))) )
{ {
/* use faster SSE2 aligned fetch and store */ /* use faster SSE2 aligned fetch and store */
for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) 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, ...@@ -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; p_buffer = b_hscale ? p_buffer_start : p_pic;
if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch|
p_dest->p->i_pitch| p_dest->p->i_pitch|
((int)p_y)| ((intptr_t)p_y)|
((int)p_buffer))) ) ((intptr_t)p_buffer))) )
{ {
/* use faster SSE2 aligned fetch and store */ /* use faster SSE2 aligned fetch and store */
for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) 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, ...@@ -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; p_buffer = b_hscale ? p_buffer_start : p_pic;
if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch|
p_dest->p->i_pitch| p_dest->p->i_pitch|
((int)p_y)| ((intptr_t)p_y)|
((int)p_buffer))) ) ((intptr_t)p_buffer))) )
{ {
/* use faster SSE2 aligned fetch and store */ /* use faster SSE2 aligned fetch and store */
for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) 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, ...@@ -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; p_buffer = b_hscale ? p_buffer_start : p_pic;
if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch| if( 0 == (15 & (p_src->p[Y_PLANE].i_pitch|
p_dest->p->i_pitch| p_dest->p->i_pitch|
((int)p_y)| ((intptr_t)p_y)|
((int)p_buffer))) ) ((intptr_t)p_buffer))) )
{ {
/* use faster SSE2 aligned fetch and store */ /* use faster SSE2 aligned fetch and store */
for( i_y = 0; i_y < p_vout->render.i_height; i_y++ ) for( i_y = 0; i_y < p_vout->render.i_height; i_y++ )
......
...@@ -319,7 +319,7 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source, ...@@ -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| 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 */ /* use faster SSE2 aligned fetch and store */
for( i_y = p_vout->render.i_height / 2 ; i_y-- ; ) 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, ...@@ -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 memory access is 16 bytes aligned
*/ */
if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| 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 */ /* use faster SSE2 aligned fetch and store */
for( i_y = p_vout->render.i_height / 2 ; i_y-- ; ) 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, ...@@ -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 memory access is 16 bytes aligned
*/ */
if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| 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 */ /* use faster SSE2 aligned fetch and store */
for( i_y = p_vout->render.i_height / 2 ; i_y-- ; ) 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, ...@@ -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 memory access is 16 bytes aligned
*/ */
if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| 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 */ /* use faster SSE2 aligned fetch and store */
for( i_y = p_vout->render.i_height / 2 ; i_y-- ; ) for( i_y = p_vout->render.i_height / 2 ; i_y-- ; )
......
...@@ -161,7 +161,7 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source, ...@@ -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 defined (MODULE_NAME_IS_i422_yuy2_sse2)
if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| 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 */ /* use faster SSE2 aligned fetch and store */
for( i_y = p_vout->render.i_height ; i_y-- ; ) 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, ...@@ -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 defined (MODULE_NAME_IS_i422_yuy2_sse2)
if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| 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 */ /* use faster SSE2 aligned fetch and store */
for( i_y = p_vout->render.i_height ; i_y-- ; ) 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, ...@@ -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 defined (MODULE_NAME_IS_i422_yuy2_sse2)
if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| 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 */ /* use faster SSE2 aligned fetch and store */
for( i_y = p_vout->render.i_height ; i_y-- ; ) 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, ...@@ -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 defined (MODULE_NAME_IS_i422_yuy2_sse2)
if( 0 == (15 & (p_source->p[Y_PLANE].i_pitch|p_dest->p->i_pitch| 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 */ /* use faster SSE2 aligned fetch and store */
for( i_y = p_vout->render.i_height ; i_y-- ; ) for( i_y = p_vout->render.i_height ; i_y-- ; )
......
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