1 @*****************************************************************************
2 @ i420_yuyv_neon.S : ARM NEONv1 I420 to YUYV chroma conversion
3 @*****************************************************************************
4 @ Copyright (C) 2009 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 General Public License as published by
8 @ the Free Software Foundation; either version 2 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 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 i420_yuyv_neon
36 .type i420_yuyv_neon, %function
40 add O2, O1, PITCH, lsl #1
47 vld1.u8 {d2}, [U,:64]!
49 vld1.u8 {d3}, [V,:64]!
52 vld1.u8 {q0}, [Y1,:128]!
56 vld1.u8 {q2}, [Y2,:128]!
58 vst1.u8 {q0-q1}, [O1,:128]!
59 vst1.u8 {q2-q3}, [O2,:128]!
75 .global i420_uyvy_neon
76 .type i420_uyvy_neon, %function
80 add O2, O1, PITCH, lsl #1
85 vld1.u8 {d0}, [U,:64]!
86 vld1.u8 {d1}, [V,:64]!
88 vld1.u8 {q1}, [Y1,:128]!
91 vld1.u8 {q3}, [Y2,:128]!
93 vst1.u8 {q0-q1}, [O1,:128]!
94 vst1.u8 {q2-q3}, [O2,:128]!
101 add O2, PITCH, lsl #1