]> git.sesse.net Git - vlc/blobdiff - modules/video_chroma/i422_yuy2.c
Removes trailing spaces. Removes tabs.
[vlc] / modules / video_chroma / i422_yuy2.c
index 84eaf90aac2049ae494166537e9eb5e1269cd2a7..ec1a90305da92b31fd5e811cb81131f2d05dc0fd 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
@@ -25,8 +25,6 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <string.h>                                            /* strerror() */
-#include <stdlib.h>                                      /* malloc(), free() */
 
 #include <vlc/vlc.h>
 #include <vlc_vout.h>
@@ -70,7 +68,7 @@ vlc_module_begin();
 #elif defined (MODULE_NAME_IS_i422_yuy2_sse2)
     set_description( _("SSE2 conversions from " SRC_FOURCC " to " DEST_FOURCC) );
     set_capability( "chroma", 120 );
-    add_requirement( MMX );
+    add_requirement( SSE2 );
 #endif
     set_callbacks( Activate, NULL );
 vlc_module_end();
@@ -163,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-- ; )
@@ -256,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-- ; )
@@ -349,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-- ; )
@@ -452,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-- ; )