aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkPngFilters.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec/SkPngFilters.h')
-rw-r--r--src/codec/SkPngFilters.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/codec/SkPngFilters.h b/src/codec/SkPngFilters.h
new file mode 100644
index 0000000000..5fc446881c
--- /dev/null
+++ b/src/codec/SkPngFilters.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkPngFilters_DEFINED
+#define SkPngFilters_DEFINED
+
+#include "png.h"
+
+// We don't bother specializing Up...
+// it's so simple it's usually already perfectly autovectorized.
+
+// These all require bpp=3 (i.e. RGB).
+void sk_sub3_sse2(png_row_infop, png_bytep, png_const_bytep);
+void sk_avg3_sse2(png_row_infop, png_bytep, png_const_bytep);
+void sk_paeth3_sse2(png_row_infop, png_bytep, png_const_bytep);
+
+// These all require bpp=4 (i.e. RGBA).
+void sk_sub4_sse2(png_row_infop, png_bytep, png_const_bytep);
+void sk_avg4_sse2(png_row_infop, png_bytep, png_const_bytep);
+void sk_paeth4_sse2(png_row_infop, png_bytep, png_const_bytep);
+
+#endif//SkPngFilterOpts_DEFINED