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

Side by Side Diff: src/core/SkOpts.h

Issue 2147763002: Add capability for SkColorXform to output half floats (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Call swizzle fn Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/core/SkColorSpaceXform.cpp ('k') | src/core/SkOpts.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkOpts_DEFINED 8 #ifndef SkOpts_DEFINED
9 #define SkOpts_DEFINED 9 #define SkOpts_DEFINED
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 gray_to_RGB1, // i.e. expand to color channels + an opaque alpha 59 gray_to_RGB1, // i.e. expand to color channels + an opaque alpha
60 grayA_to_RGBA, // i.e. expand to color channels 60 grayA_to_RGBA, // i.e. expand to color channels
61 grayA_to_rgbA, // i.e. expand to color channels and premultiply 61 grayA_to_rgbA, // i.e. expand to color channels and premultiply
62 inverted_CMYK_to_RGB1, // i.e. convert color space 62 inverted_CMYK_to_RGB1, // i.e. convert color space
63 inverted_CMYK_to_BGR1; // i.e. convert color space 63 inverted_CMYK_to_BGR1; // i.e. convert color space
64 64
65 // Blend ndst src pixels over dst, where both src and dst point to sRGB pixe ls (RGBA or BGRA). 65 // Blend ndst src pixels over dst, where both src and dst point to sRGB pixe ls (RGBA or BGRA).
66 // If nsrc < ndst, we loop over src to create a pattern. 66 // If nsrc < ndst, we loop over src to create a pattern.
67 extern void (*srcover_srgb_srgb)(uint32_t* dst, const uint32_t* src, int nds t, int nsrc); 67 extern void (*srcover_srgb_srgb)(uint32_t* dst, const uint32_t* src, int nds t, int nsrc);
68 68
69 // Color xform RGB1 pixels into SkPMColor order. 69 // Color xform RGB1 pixels.
70 extern void (*color_xform_RGB1_to_2dot2) (uint32_t* dst, const uint32_t* src , int len, 70 extern void (*color_xform_RGB1_to_2dot2) (uint32_t* dst, const uint32_t* src , int len,
71 const float* const srcTables[3], 71 const float* const srcTables[3],
72 const float srcToDstMatrix[12]); 72 const float srcToDstMatrix[12]);
73 extern void (*color_xform_RGB1_to_srgb)(uint32_t* dst, const uint32_t* src, int len, 73 extern void (*color_xform_RGB1_to_srgb)(uint32_t* dst, const uint32_t* src, int len,
74 const float* const srcTables[3], 74 const float* const srcTables[3],
75 const float srcToDstMatrix[12]); 75 const float srcToDstMatrix[12]);
76 extern void (*color_xform_RGB1_to_table)(uint32_t* dst, const uint32_t* src, int len, 76 extern void (*color_xform_RGB1_to_table)(uint32_t* dst, const uint32_t* src, int len,
77 const float* const srcTables[3], 77 const float* const srcTables[3],
78 const float srcToDstMatrix[12], 78 const float srcToDstMatrix[12],
79 const uint8_t* const dstTables[3]); 79 const uint8_t* const dstTables[3]);
80 extern void (*color_xform_RGB1_to_linear)(uint64_t* dst, const uint32_t* src , int len,
81 const float* const srcTables[3],
82 const float srcToDstMatrix[12]);
80 83
81 } 84 }
82 85
83 #endif//SkOpts_DEFINED 86 #endif//SkOpts_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkColorSpaceXform.cpp ('k') | src/core/SkOpts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698