S32_generic_D32_filter_DXDY_SSSE3<true>(s, xy, count, colors);
}
+void S32_D16_filter_DX_SSSE3(const SkBitmapProcState& s,
+ const uint32_t* xy,
+ int count, uint16_t* colors) {
+ SkASSERT(254 >= count);
+ SkAutoSTMalloc<254, uint32_t> colors32(count);
+ S32_generic_D32_filter_DX_SSSE3<false>(s, xy, count, colors32);
+ for(int i = 0; i < count; i++) {
+ *colors++ = SkPixel32ToPixel16(colors32[i]);
+ }
+}
+
void S32_D16_filter_DXDY_SSSE3(const SkBitmapProcState& s,
const uint32_t* xy,
int count, uint16_t* colors) {
sk_throw();
}
+void S32_D16_filter_DX_SSSE3(const SkBitmapProcState& s,
+ const uint32_t* xy,
+ int count, uint16_t* colors) {
+ sk_throw();
+}
+
void S32_D16_filter_DXDY_SSSE3(const SkBitmapProcState& s,
const uint32_t* xy,
int count, uint16_t* colors) {
const uint32_t* xy,
int count, uint32_t* colors);
+void S32_D16_filter_DX_SSSE3(const SkBitmapProcState& s,
+ const uint32_t* xy,
+ int count, uint16_t* colors);
void S32_D16_filter_DXDY_SSSE3(const SkBitmapProcState& s,
const uint32_t* xy,
int count, uint16_t* colors);
/* Check fSampleProc16 */
if (fSampleProc16 == S32_D16_filter_DX) {
- fSampleProc16 = S32_D16_filter_DX_SSE2;
+ if (ssse3) {
+ fSampleProc16 = S32_D16_filter_DX_SSSE3;
+ } else {
+ fSampleProc16 = S32_D16_filter_DX_SSE2;
+ }
} else if (ssse3 && fSampleProc16 == S32_D16_filter_DXDY) {
fSampleProc16 = S32_D16_filter_DXDY_SSSE3;
}