[MPlayer-cvslog] r35673 - trunk/libmpcodecs/vf_ass.c

upsuper subversion at mplayerhq.hu
Thu Dec 13 03:17:27 CET 2012


Author: upsuper
Date: Thu Dec 13 03:17:27 2012
New Revision: 35673

Log:
Reduce register usage to fix the compilation in x86.

Modified:
   trunk/libmpcodecs/vf_ass.c

Modified: trunk/libmpcodecs/vf_ass.c
==============================================================================
--- trunk/libmpcodecs/vf_ass.c	Wed Dec 12 18:34:50 2012	(r35672)
+++ trunk/libmpcodecs/vf_ass.c	Thu Dec 13 03:17:27 2012	(r35673)
@@ -218,7 +218,7 @@ static void render_frame_yuv422_sse4(vf_
     struct dirty_rows_extent *dr = vf->priv->dirty_rows;
     uint8_t *dst = vf->dmpi->planes[0];
     int stride = vf->dmpi->stride[0];
-    int is_uyvy = vf->priv->outfmt == IMGFMT_UYVY;
+    int32_t is_uyvy = vf->priv->outfmt == IMGFMT_UYVY;
     int i;
 
     CLEAN_XMM(7);
@@ -258,8 +258,8 @@ static void render_frame_yuv422_sse4(vf_
 
                 "movdqu     (%[dst], %[j], 2),  %%xmm1 \n\t"
                 "movdqa     %%xmm1, %%xmm3 \n\t"
-                "test       %[f],   %[f] \n\t"
-                "jz         11f \n\t"
+                "cmpl       $0, %[f] \n\t"
+                "je         11f \n\t"
                 "psrlw      $8, %%xmm1 \n\t"
                 "psllw      $8, %%xmm3 \n\t"
                 "psrlw      $8, %%xmm3 \n\t"
@@ -281,8 +281,8 @@ static void render_frame_yuv422_sse4(vf_
                 "packuswb   %%xmm7, %%xmm5 \n\t"
                 "packuswb   %%xmm7, %%xmm6 \n\t"
                 "punpcklbw  %%xmm6, %%xmm5 \n\t"
-                "test       %[f],   %[f] \n\t"
-                "jz         21f \n\t"
+                "cmpl       $0, %[f] \n\t"
+                "je         21f \n\t"
                 "punpcklbw  %%xmm1, %%xmm3 \n\t"
                 "punpcklbw  %%xmm4, %%xmm5 \n\t"
                 "paddb      %%xmm5, %%xmm3 \n\t"
@@ -308,7 +308,7 @@ static void render_frame_yuv422_sse4(vf_
                     [src_v] "r" (src_v + i * outw),
                     [j]     "r" (xmin),
                     [xmax]  "g" (xmax),
-                    [f]     "r" (is_uyvy)
+                    [f]     "g" (is_uyvy)
         );
     }
 }


More information about the MPlayer-cvslog mailing list