OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 temp[128 + SS(r, UVSHIFT)] = temp[128 + SS(r, UVSHIFT) - 1]; \ | 104 temp[128 + SS(r, UVSHIFT)] = temp[128 + SS(r, UVSHIFT) - 1]; \ |
105 } \ | 105 } \ |
106 ANY_SIMD(temp, temp + 64, temp + 128, temp + 192, \ | 106 ANY_SIMD(temp, temp + 64, temp + 128, temp + 192, \ |
107 yuvconstants, MASK + 1); \ | 107 yuvconstants, MASK + 1); \ |
108 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 192, \ | 108 memcpy(dst_ptr + (n >> DUVSHIFT) * BPP, temp + 192, \ |
109 SS(r, DUVSHIFT) * BPP); \ | 109 SS(r, DUVSHIFT) * BPP); \ |
110 } | 110 } |
111 | 111 |
112 #ifdef HAS_I422TOARGBROW_SSSE3 | 112 #ifdef HAS_I422TOARGBROW_SSSE3 |
113 ANY31C(I422ToARGBRow_Any_SSSE3, I422ToARGBRow_SSSE3, 1, 0, 4, 7) | 113 ANY31C(I422ToARGBRow_Any_SSSE3, I422ToARGBRow_SSSE3, 1, 0, 4, 7) |
114 ANY31C(I422ToABGRRow_Any_SSSE3, I422ToABGRRow_SSSE3, 1, 0, 4, 7) | |
115 #endif | 114 #endif |
116 #ifdef HAS_I444TOARGBROW_SSSE3 | 115 #ifdef HAS_I444TOARGBROW_SSSE3 |
117 ANY31C(I444ToARGBRow_Any_SSSE3, I444ToARGBRow_SSSE3, 0, 0, 4, 7) | 116 ANY31C(I444ToARGBRow_Any_SSSE3, I444ToARGBRow_SSSE3, 0, 0, 4, 7) |
118 ANY31C(I411ToARGBRow_Any_SSSE3, I411ToARGBRow_SSSE3, 2, 0, 4, 7) | 117 ANY31C(I411ToARGBRow_Any_SSSE3, I411ToARGBRow_SSSE3, 2, 0, 4, 7) |
119 ANY31C(I422ToBGRARow_Any_SSSE3, I422ToBGRARow_SSSE3, 1, 0, 4, 7) | 118 ANY31C(I422ToBGRARow_Any_SSSE3, I422ToBGRARow_SSSE3, 1, 0, 4, 7) |
120 ANY31C(I422ToRGBARow_Any_SSSE3, I422ToRGBARow_SSSE3, 1, 0, 4, 7) | 119 ANY31C(I422ToRGBARow_Any_SSSE3, I422ToRGBARow_SSSE3, 1, 0, 4, 7) |
121 ANY31C(I422ToARGB4444Row_Any_SSSE3, I422ToARGB4444Row_SSSE3, 1, 0, 2, 7) | 120 ANY31C(I422ToARGB4444Row_Any_SSSE3, I422ToARGB4444Row_SSSE3, 1, 0, 2, 7) |
122 ANY31C(I422ToARGB1555Row_Any_SSSE3, I422ToARGB1555Row_SSSE3, 1, 0, 2, 7) | 121 ANY31C(I422ToARGB1555Row_Any_SSSE3, I422ToARGB1555Row_SSSE3, 1, 0, 2, 7) |
123 ANY31C(I422ToRGB565Row_Any_SSSE3, I422ToRGB565Row_SSSE3, 1, 0, 2, 7) | 122 ANY31C(I422ToRGB565Row_Any_SSSE3, I422ToRGB565Row_SSSE3, 1, 0, 2, 7) |
124 ANY31C(I422ToRGB24Row_Any_SSSE3, I422ToRGB24Row_SSSE3, 1, 0, 3, 7) | 123 ANY31C(I422ToRGB24Row_Any_SSSE3, I422ToRGB24Row_SSSE3, 1, 0, 3, 7) |
125 ANY31C(I422ToRAWRow_Any_SSSE3, I422ToRAWRow_SSSE3, 1, 0, 3, 7) | 124 ANY31C(I422ToRAWRow_Any_SSSE3, I422ToRAWRow_SSSE3, 1, 0, 3, 7) |
126 #endif // HAS_I444TOARGBROW_SSSE3 | 125 #endif // HAS_I444TOARGBROW_SSSE3 |
127 #ifdef HAS_I422TORGB24ROW_AVX2 | 126 #ifdef HAS_I422TORGB24ROW_AVX2 |
128 ANY31C(I422ToRGB24Row_Any_AVX2, I422ToRGB24Row_AVX2, 1, 0, 3, 15) | 127 ANY31C(I422ToRGB24Row_Any_AVX2, I422ToRGB24Row_AVX2, 1, 0, 3, 15) |
129 #endif | 128 #endif |
130 #ifdef HAS_I422TORAWROW_AVX2 | 129 #ifdef HAS_I422TORAWROW_AVX2 |
131 ANY31C(I422ToRAWRow_Any_AVX2, I422ToRAWRow_AVX2, 1, 0, 3, 15) | 130 ANY31C(I422ToRAWRow_Any_AVX2, I422ToRAWRow_AVX2, 1, 0, 3, 15) |
132 #endif | 131 #endif |
133 #ifdef HAS_I422TOARGBROW_AVX2 | 132 #ifdef HAS_I422TOARGBROW_AVX2 |
134 ANY31C(I422ToARGBRow_Any_AVX2, I422ToARGBRow_AVX2, 1, 0, 4, 15) | 133 ANY31C(I422ToARGBRow_Any_AVX2, I422ToARGBRow_AVX2, 1, 0, 4, 15) |
135 #endif | 134 #endif |
136 #ifdef HAS_I422TOBGRAROW_AVX2 | 135 #ifdef HAS_I422TOBGRAROW_AVX2 |
137 ANY31C(I422ToBGRARow_Any_AVX2, I422ToBGRARow_AVX2, 1, 0, 4, 15) | 136 ANY31C(I422ToBGRARow_Any_AVX2, I422ToBGRARow_AVX2, 1, 0, 4, 15) |
138 #endif | 137 #endif |
139 #ifdef HAS_I422TORGBAROW_AVX2 | 138 #ifdef HAS_I422TORGBAROW_AVX2 |
140 ANY31C(I422ToRGBARow_Any_AVX2, I422ToRGBARow_AVX2, 1, 0, 4, 15) | 139 ANY31C(I422ToRGBARow_Any_AVX2, I422ToRGBARow_AVX2, 1, 0, 4, 15) |
141 #endif | 140 #endif |
142 #ifdef HAS_I422TOABGRROW_AVX2 | |
143 ANY31C(I422ToABGRRow_Any_AVX2, I422ToABGRRow_AVX2, 1, 0, 4, 15) | |
144 #endif | |
145 #ifdef HAS_I444TOARGBROW_AVX2 | 141 #ifdef HAS_I444TOARGBROW_AVX2 |
146 ANY31C(I444ToARGBRow_Any_AVX2, I444ToARGBRow_AVX2, 0, 0, 4, 15) | 142 ANY31C(I444ToARGBRow_Any_AVX2, I444ToARGBRow_AVX2, 0, 0, 4, 15) |
147 #endif | 143 #endif |
148 #ifdef HAS_I411TOARGBROW_AVX2 | 144 #ifdef HAS_I411TOARGBROW_AVX2 |
149 ANY31C(I411ToARGBRow_Any_AVX2, I411ToARGBRow_AVX2, 2, 0, 4, 15) | 145 ANY31C(I411ToARGBRow_Any_AVX2, I411ToARGBRow_AVX2, 2, 0, 4, 15) |
150 #endif | 146 #endif |
151 #ifdef HAS_I422TOARGB4444ROW_AVX2 | 147 #ifdef HAS_I422TOARGB4444ROW_AVX2 |
152 ANY31C(I422ToARGB4444Row_Any_AVX2, I422ToARGB4444Row_AVX2, 1, 0, 2, 7) | 148 ANY31C(I422ToARGB4444Row_Any_AVX2, I422ToARGB4444Row_AVX2, 1, 0, 2, 7) |
153 #endif | 149 #endif |
154 #ifdef HAS_I422TOARGB1555ROW_AVX2 | 150 #ifdef HAS_I422TOARGB1555ROW_AVX2 |
155 ANY31C(I422ToARGB1555Row_Any_AVX2, I422ToARGB1555Row_AVX2, 1, 0, 2, 7) | 151 ANY31C(I422ToARGB1555Row_Any_AVX2, I422ToARGB1555Row_AVX2, 1, 0, 2, 7) |
156 #endif | 152 #endif |
157 #ifdef HAS_I422TORGB565ROW_AVX2 | 153 #ifdef HAS_I422TORGB565ROW_AVX2 |
158 ANY31C(I422ToRGB565Row_Any_AVX2, I422ToRGB565Row_AVX2, 1, 0, 2, 7) | 154 ANY31C(I422ToRGB565Row_Any_AVX2, I422ToRGB565Row_AVX2, 1, 0, 2, 7) |
159 #endif | 155 #endif |
160 #ifdef HAS_I422TOARGBROW_NEON | 156 #ifdef HAS_I422TOARGBROW_NEON |
161 ANY31C(I444ToARGBRow_Any_NEON, I444ToARGBRow_NEON, 0, 0, 4, 7) | 157 ANY31C(I444ToARGBRow_Any_NEON, I444ToARGBRow_NEON, 0, 0, 4, 7) |
162 ANY31C(I422ToARGBRow_Any_NEON, I422ToARGBRow_NEON, 1, 0, 4, 7) | 158 ANY31C(I422ToARGBRow_Any_NEON, I422ToARGBRow_NEON, 1, 0, 4, 7) |
163 ANY31C(I411ToARGBRow_Any_NEON, I411ToARGBRow_NEON, 2, 0, 4, 7) | 159 ANY31C(I411ToARGBRow_Any_NEON, I411ToARGBRow_NEON, 2, 0, 4, 7) |
164 ANY31C(I422ToBGRARow_Any_NEON, I422ToBGRARow_NEON, 1, 0, 4, 7) | 160 ANY31C(I422ToBGRARow_Any_NEON, I422ToBGRARow_NEON, 1, 0, 4, 7) |
165 ANY31C(I422ToABGRRow_Any_NEON, I422ToABGRRow_NEON, 1, 0, 4, 7) | |
166 ANY31C(I422ToRGBARow_Any_NEON, I422ToRGBARow_NEON, 1, 0, 4, 7) | 161 ANY31C(I422ToRGBARow_Any_NEON, I422ToRGBARow_NEON, 1, 0, 4, 7) |
167 ANY31C(I422ToRGB24Row_Any_NEON, I422ToRGB24Row_NEON, 1, 0, 3, 7) | 162 ANY31C(I422ToRGB24Row_Any_NEON, I422ToRGB24Row_NEON, 1, 0, 3, 7) |
168 ANY31C(I422ToRAWRow_Any_NEON, I422ToRAWRow_NEON, 1, 0, 3, 7) | 163 ANY31C(I422ToRAWRow_Any_NEON, I422ToRAWRow_NEON, 1, 0, 3, 7) |
169 ANY31C(I422ToARGB4444Row_Any_NEON, I422ToARGB4444Row_NEON, 1, 0, 2, 7) | 164 ANY31C(I422ToARGB4444Row_Any_NEON, I422ToARGB4444Row_NEON, 1, 0, 2, 7) |
170 ANY31C(I422ToARGB1555Row_Any_NEON, I422ToARGB1555Row_NEON, 1, 0, 2, 7) | 165 ANY31C(I422ToARGB1555Row_Any_NEON, I422ToARGB1555Row_NEON, 1, 0, 2, 7) |
171 ANY31C(I422ToRGB565Row_Any_NEON, I422ToRGB565Row_NEON, 1, 0, 2, 7) | 166 ANY31C(I422ToRGB565Row_Any_NEON, I422ToRGB565Row_NEON, 1, 0, 2, 7) |
172 #endif | 167 #endif |
173 #undef ANY31C | 168 #undef ANY31C |
174 | 169 |
175 // Any 2 planes to 1. | 170 // Any 2 planes to 1. |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 #endif | 804 #endif |
810 #ifdef HAS_UYVYTOUVROW_NEON | 805 #ifdef HAS_UYVYTOUVROW_NEON |
811 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) | 806 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) |
812 #endif | 807 #endif |
813 #undef ANY12S | 808 #undef ANY12S |
814 | 809 |
815 #ifdef __cplusplus | 810 #ifdef __cplusplus |
816 } // extern "C" | 811 } // extern "C" |
817 } // namespace libyuv | 812 } // namespace libyuv |
818 #endif | 813 #endif |
OLD | NEW |