]> git.sesse.net Git - vlc/blobdiff - modules/video_chroma/i420_rgb16.c
ccess/ftp.c: Fix ftp pausing. Patch by Andrew Zaikin <andrew.zaikin at gmail.com...
[vlc] / modules / video_chroma / i420_rgb16.c
index 6f42891e0bbef3e0eacdca2140d491300bbbc77c..ae254aadb5ad8fc7f7665b7c4e224328f2e30d8b 100644 (file)
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -363,15 +363,15 @@ void E_(I420_R5G5B5)( vout_thread_t *p_vout, picture_t *p_src,
     }
 
     /*
-    ** SSE2 128 bits fetch/store instructions are faster 
+    ** SSE2 128 bits fetch/store instructions are faster
     ** if memory access is 16 bytes aligned
     */
 
     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++ )
@@ -604,15 +604,15 @@ void E_(I420_R5G6B5)( vout_thread_t *p_vout, picture_t *p_src,
     }
 
     /*
-    ** SSE2 128 bits fetch/store instructions are faster 
+    ** SSE2 128 bits fetch/store instructions are faster
     ** if memory access is 16 bytes aligned
     */
 
     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++ )
@@ -957,15 +957,15 @@ void E_(I420_A8R8G8B8)( vout_thread_t *p_vout, picture_t *p_src,
     }
 
     /*
-    ** SSE2 128 bits fetch/store instructions are faster 
+    ** SSE2 128 bits fetch/store instructions are faster
     ** if memory access is 16 bytes aligned
     */
 
     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++ )
@@ -1196,15 +1196,15 @@ void E_(I420_R8G8B8A8)( vout_thread_t *p_vout, picture_t *p_src,
     }
 
     /*
-    ** SSE2 128 bits fetch/store instructions are faster 
+    ** SSE2 128 bits fetch/store instructions are faster
     ** if memory access is 16 bytes aligned
     */
 
     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++ )
@@ -1435,15 +1435,15 @@ void E_(I420_B8G8R8A8)( vout_thread_t *p_vout, picture_t *p_src,
     }
 
     /*
-    ** SSE2 128 bits fetch/store instructions are faster 
+    ** SSE2 128 bits fetch/store instructions are faster
     ** if memory access is 16 bytes aligned
     */
 
     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++ )
@@ -1671,15 +1671,15 @@ void E_(I420_A8B8G8R8)( vout_thread_t *p_vout, picture_t *p_src,
     }
 
     /*
-    ** SSE2 128 bits fetch/store instructions are faster 
+    ** SSE2 128 bits fetch/store instructions are faster
     ** if memory access is 16 bytes aligned
     */
 
     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++ )