1/*
2 * Copyright 2009 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkBlitRow_opts_SSE2_DEFINED
9#define SkBlitRow_opts_SSE2_DEFINED
10
11#include "SkBlitRow.h"
12
13void S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
14                              const SkPMColor* SK_RESTRICT src,
15                              int count, U8CPU alpha);
16
17void S32A_Opaque_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
18                                const SkPMColor* SK_RESTRICT src,
19                                int count, U8CPU alpha);
20
21void S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
22                               const SkPMColor* SK_RESTRICT src,
23                               int count, U8CPU alpha);
24void SkARGB32_A8_BlitMask_SSE2(void* device, size_t dstRB, const void* mask,
25                               size_t maskRB, SkColor color,
26                               int width, int height);
27
28void SkBlitLCD16Row_SSE2(SkPMColor dst[], const uint16_t src[],
29                         SkColor color, int width, SkPMColor);
30void SkBlitLCD16OpaqueRow_SSE2(SkPMColor dst[], const uint16_t src[],
31                               SkColor color, int width, SkPMColor opaqueDst);
32
33void S32_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst,
34                          const SkPMColor* SK_RESTRICT src, int count,
35                          U8CPU alpha, int /*x*/, int /*y*/);
36void S32A_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst,
37                           const SkPMColor* SK_RESTRICT src,
38                           int count, U8CPU alpha, int /*x*/, int /*y*/);
39void S32_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst,
40                                 const SkPMColor* SK_RESTRICT src,
41                                 int count, U8CPU alpha, int x, int y);
42void S32A_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst,
43                                  const SkPMColor* SK_RESTRICT src,
44                                  int count, U8CPU alpha, int x, int y);
45
46#endif
47