[vlc-commits] mmx: remove dead Y211 code
Rémi Denis-Courmont
git at videolan.org
Wed Jun 28 22:51:00 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 28 23:14:29 2017 +0300| [b43baa67f914104997b627e07bbba4eb789f12ca] | committer: Rémi Denis-Courmont
mmx: remove dead Y211 code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b43baa67f914104997b627e07bbba4eb789f12ca
---
modules/video_chroma/i420_yuy2.c | 6 ------
modules/video_chroma/i420_yuy2.h | 19 -------------------
modules/video_chroma/i422_yuy2.h | 3 ---
3 files changed, 28 deletions(-)
diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c
index 3fd5e2c296..b1a0359fc9 100644
--- a/modules/video_chroma/i420_yuy2.c
+++ b/modules/video_chroma/i420_yuy2.c
@@ -78,12 +78,6 @@ static void I420_Y211 ( filter_t *, picture_t *, picture_t * );
static picture_t *I420_Y211_Filter ( filter_t *, picture_t * );
#endif
-#ifdef MODULE_NAME_IS_i420_yuy2_mmx
-/* Initialize MMX-specific constants */
-static const uint64_t i_00ffw = 0x00ff00ff00ff00ffULL;
-static const uint64_t i_80w = 0x0000000080808080ULL;
-#endif
-
/*****************************************************************************
* Module descriptor.
*****************************************************************************/
diff --git a/modules/video_chroma/i420_yuy2.h b/modules/video_chroma/i420_yuy2.h
index a950610a83..66a89508e9 100644
--- a/modules/video_chroma/i420_yuy2.h
+++ b/modules/video_chroma/i420_yuy2.h
@@ -97,25 +97,6 @@ punpckhbw %%mm3, %%mm1 # Y7 v3 Y6 u3 Y5 v2 Y4 u2 \n\
movq %%mm1, 8(%1) # Store high UYVY \n\
"
-/* FIXME: this code does not work ! Chroma seems to be wrong. */
-#define MMX_YUV420_Y211 " \n\
-movd (%4), %%mm2 # Load 4 Cb 00 00 00 00 u3 u2 u1 u0 \n\
-movd (%5), %%mm3 # Load 4 Cr 00 00 00 00 v3 v2 v1 v0 \n\
-pand i_00ffw, %%mm0 # get Y even 00 Y6 00 Y4 00 Y2 00 Y0 \n\
-packuswb %%mm0, %%mm0 # pack Y y6 y4 y2 y0 y6 y4 y2 y0 \n\
-pand i_00ffw, %%mm2 # get U even 00 u6 00 u4 00 u2 00 u0 \n\
-packuswb %%mm2, %%mm2 # pack U 00 00 u2 u0 00 00 u2 u0 \n\
-pand i_00ffw, %%mm3 # get V even 00 v6 00 v4 00 v2 00 v0 \n\
-packuswb %%mm3, %%mm3 # pack V 00 00 v2 v0 00 00 v2 v0 \n\
-punpcklbw %%mm3, %%mm2 # 00 00 00 00 v2 u2 v0 u0 \n\
-psubsw i_80w, %%mm2 # U,V -= 128 \n\
-punpcklbw %%mm2, %%mm0 # v2 y6 u2 y4 v0 y2 u0 y0 \n\
-movq %%mm0, (%0) # Store YUYV \n\
-pand i_00ffw, %%mm1 # get Y even 00 Y6 00 Y4 00 Y2 00 Y0 \n\
-packuswb %%mm1, %%mm1 # pack Y Y6 Y4 Y2 Y0 Y6 Y4 Y2 Y0 \n\
-punpcklbw %%mm2, %%mm1 # v2 Y6 u2 Y4 v0 Y2 u0 Y0 \n\
-movq %%mm1, (%1) # Store YUYV \n\
-"
#elif defined(HAVE_MMX_INTRINSICS)
/* MMX intrinsics */
diff --git a/modules/video_chroma/i422_yuy2.h b/modules/video_chroma/i422_yuy2.h
index 7d2c469128..655ab32365 100644
--- a/modules/video_chroma/i422_yuy2.h
+++ b/modules/video_chroma/i422_yuy2.h
@@ -79,9 +79,6 @@ punpckhbw %%mm0, %%mm1 # y7 v3 y6 u3 y5 v2 y4 u2 \n\
movq %%mm1, 8(%0) # Store high UYVY \n\
"
-#define MMX_YUV422_Y211 " \n\
-"
-
#elif defined(HAVE_MMX_INTRINSICS)
/* MMX intrinsics */
More information about the vlc-commits
mailing list