1 @*****************************************************************************
2 @ i422_yuyv_neon.S : ARM NEONv1 I422 to YUYV chroma conversion
3 @*****************************************************************************
4 @ Copyright (C) 2011 RĂ©mi Denis-Courmont
6 @ This program is free software; you can redistribute it and/or modify
7 @ it under the terms of the GNU Lesser General Public License as published by
8 @ the Free Software Foundation; either version 2.1 of the License, or
9 @ (at your option) any later version.
11 @ This program is distributed in the hope that it will be useful,
12 @ but WITHOUT ANY WARRANTY; without even the implied warranty of
13 @ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 @ GNU General Public License for more details.
16 @ You should have received a copy of the GNU Lesser General Public License
17 @ along with this program; if not, write to the Free Software Foundation,
18 @ Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 @****************************************************************************/
35 .global i422_yuyv_neon
36 .type i422_yuyv_neon, %function
39 ldmia r1, {Y, U, V, YPAD}
42 sub OPAD, OPAD, WIDTH, lsl #1
49 vld1.u8 {d2}, [U,:64]!
51 vld1.u8 {d3}, [V,:64]!
54 subs COUNT, COUNT, #16
55 vld1.u8 {q0}, [Y,:128]!
57 vst1.u8 {q0-q1}, [O,:128]!
61 add U, U, YPAD, lsr #1
62 add V, V, YPAD, lsr #1
67 .global i422_uyvy_neon
68 .type i422_uyvy_neon, %function
71 ldmia r1, {Y, U, V, YPAD}
74 sub OPAD, OPAD, WIDTH, lsl #1
81 vld1.u8 {d0}, [U,:64]!
83 vld1.u8 {d1}, [V,:64]!
86 subs COUNT, COUNT, #16
87 vld1.u8 {q1}, [Y,:128]!
89 vst1.u8 {q0-q1}, [O,:128]!
93 add U, U, YPAD, lsr #1
94 add V, V, YPAD, lsr #1