Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Unified Diff: src/codec/SkPngFilters.h

Issue 1573943002: sketch hooking into PNG_FILTER_OPTIMIZATIONS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: asserts Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/codec/SkPngFilters.h
diff --git a/src/codec/SkPngFilters.h b/src/codec/SkPngFilters.h
new file mode 100644
index 0000000000000000000000000000000000000000..5fc446881c6f8aa93a88597ff604da4c54ef0dc8
--- /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
« no previous file with comments | « src/codec/SkPngCodec.cpp ('k') | src/codec/SkPngFilters.cpp » ('j') | src/codec/SkPngFilters.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698