blob: 652ff6ee09656ba74ff7e6803873e384015806a5 [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
senorblanco@chromium.org4e753552009-11-16 21:09:00 +000017void S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
18 const SkPMColor* SK_RESTRICT src,
19 int count, U8CPU alpha);
henrik.smiding70840cb2015-03-20 09:20:46 -070020
henrik.smiding70840cb2015-03-20 09:20:46 -070021void Color32A_D565_SSE2(uint16_t dst[], SkPMColor src, int count, int x,
22 int y);
23
tomhudson@google.comd6770e62012-02-14 16:01:15 +000024void SkBlitLCD16Row_SSE2(SkPMColor dst[], const uint16_t src[],
25 SkColor color, int width, SkPMColor);
26void SkBlitLCD16OpaqueRow_SSE2(SkPMColor dst[], const uint16_t src[],
27 SkColor color, int width, SkPMColor opaqueDst);
commit-bot@chromium.org47591072014-02-19 03:09:52 +000028
commit-bot@chromium.org39ce33a2014-02-24 04:23:39 +000029void S32_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst,
30 const SkPMColor* SK_RESTRICT src, int count,
31 U8CPU alpha, int /*x*/, int /*y*/);
commit-bot@chromium.org47591072014-02-19 03:09:52 +000032void S32A_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst,
33 const SkPMColor* SK_RESTRICT src,
34 int count, U8CPU alpha, int /*x*/, int /*y*/);
commit-bot@chromium.org27580472014-03-07 03:25:32 +000035void S32_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst,
36 const SkPMColor* SK_RESTRICT src,
37 int count, U8CPU alpha, int x, int y);
commit-bot@chromium.orgfe089b32014-03-07 13:24:42 +000038void S32A_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst,
39 const SkPMColor* SK_RESTRICT src,
40 int count, U8CPU alpha, int x, int y);
commit-bot@chromium.org8c4953c2014-04-30 14:58:46 +000041#endif