blob: 29fd96e5e915da215ea763f5570eb9a446889643 [file] [log] [blame]
senorblanco@chromium.org4e753552009-11-16 21:09:00 +00001/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00002 * 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.
senorblanco@chromium.org4e753552009-11-16 21:09:00 +00006 */
7
commit-bot@chromium.org8c4953c2014-04-30 14:58:46 +00008#ifndef SkBlitRow_opts_SSE2_DEFINED
9#define SkBlitRow_opts_SSE2_DEFINED
epoger@google.comec3ed6a2011-07-28 14:26:00 +000010
senorblanco@chromium.org4e753552009-11-16 21:09:00 +000011#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);
reed@google.comedb606c2011-10-18 13:56:50 +000024void SkARGB32_A8_BlitMask_SSE2(void* device, size_t dstRB, const void* mask,
25 size_t maskRB, SkColor color,
26 int width, int height);
tomhudson@google.comd6770e62012-02-14 16:01:15 +000027
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);
commit-bot@chromium.org47591072014-02-19 03:09:52 +000032
commit-bot@chromium.org39ce33a2014-02-24 04:23:39 +000033void S32_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst,
34 const SkPMColor* SK_RESTRICT src, int count,
35 U8CPU alpha, int /*x*/, int /*y*/);
commit-bot@chromium.org47591072014-02-19 03:09:52 +000036void S32A_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst,
37 const SkPMColor* SK_RESTRICT src,
38 int count, U8CPU alpha, int /*x*/, int /*y*/);
commit-bot@chromium.org27580472014-03-07 03:25:32 +000039void 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);
commit-bot@chromium.orgfe089b32014-03-07 13:24:42 +000042void 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);
commit-bot@chromium.org8c4953c2014-04-30 14:58:46 +000045
46#endif