[vlc-devel] commit: i420_yuyv_neon: small tweaks ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Sep 20 15:47:10 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 20 16:46:20 2009 +0300| [f6fb388c3bc47bc09b001b37e16b43d34ee070c7] | committer: Rémi Denis-Courmont 

i420_yuyv_neon: small tweaks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6fb388c3bc47bc09b001b37e16b43d34ee070c7
---

 modules/video_chroma/i420_yuyv_neon.S |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/modules/video_chroma/i420_yuyv_neon.S b/modules/video_chroma/i420_yuyv_neon.S
index c9be91a..0fd3e83 100644
--- a/modules/video_chroma/i420_yuyv_neon.S
+++ b/modules/video_chroma/i420_yuyv_neon.S
@@ -29,26 +29,25 @@
 #define	Y2	r5
 #define	U	r6
 #define	V	r7
-#define	END_O1	r8
+#define	END_O1	r12
 
 	.align
 	.global i420_uyvy_neon
 	.type	i420_uyvy_neon, %function
 i420_uyvy_neon:
-	push		{r4-r8}
-	add		r8,	pc,	#(indexes+64-.-8)
+	adr		r12,	indexes+64
 	b		i420_pack_neon
 
 	.global i420_yuyv_neon
 	.type	i420_yuyv_neon, %function
 i420_yuyv_neon:
-	push		{r4-r8}
-	add		r8,	pc,	#(indexes-.-8)
+	adr		r12,	indexes
 	.hidden	i420_pack_neon
 i420_pack_neon:
-	vld1.u8		{d24-d27},	[r8]!
-	ldmia		r1,	{r4, r6, r7}
-	vld1.u8		{d28-d31},	[r8]
+	push		{r4-r7, lr}
+	vld1.u8		{d24-d27},	[r12]!
+	ldmia		r1,	{Y1, U, V}
+	vld1.u8		{d28-d31},	[r12]
 	add		O2,	O1,	PITCH, lsl #1
 	add		Y2,	Y1,	PITCH
 1:
@@ -81,8 +80,7 @@ i420_pack_neon:
 	cmp		HEIGHT,	#0
 	bne		1b
 
-	pop		{r4-r8}
-	bx		lr
+	pop		{r4-r7, pc}
 
 	.hidden indexes
 indexes:




More information about the vlc-devel mailing list