Searched defs:colorCount (Results 1 - 15 of 15) sorted by relevance

/external/skia/bench/
H A DHardStopGradientBench_ScaleNumHardStops.cpp19 HardStopGradientBench_ScaleNumHardStops(int colorCount, int hardStopCount) { argument
20 SkASSERT(hardStopCount <= colorCount/2);
23 colorCount, hardStopCount);
25 fColorCount = colorCount;
H A DCodecBench.cpp55 int colorCount; local
61 colorCount = 256;
67 &options, colorTable, &colorCount);
H A Dnanobench.cpp859 int colorCount = 256; local
864 &colorCount);
/external/skia/gm/
H A Dshallowgradient.cpp56 const int colorCount = SK_ARRAY_COUNT(colors); variable
62 paint.setShader(fProc(colors, colorCount, size));
/external/skia/src/core/
H A DSkImageGenerator.cpp105 SkPMColor* colors, int* colorCount) {
104 onGetPixels(const SkImageInfo& info, void* dst, size_t rb, SkPMColor* colors, int* colorCount) argument
/external/opencv/cvaux/src/
H A Dcvcalibfilter.cpp545 const int colorCount = sizeof(line_colors)/sizeof(line_colors[0]); local
559 color = line_colors[(j/cvRound(etalonParams[0]))%colorCount];
/external/skia/src/c/
H A Dsk_effects.cpp52 int colorCount,
67 colorPos, colorCount,
79 int colorCount,
96 colorCount, mode, 0, &matrix).release();
102 int colorCount,
114 colorCount, 0, &matrix).release();
123 int colorCount,
142 colorCount, mode, 0, &matrix).release();
49 sk_shader_new_linear_gradient(const sk_point_t pts[2], const sk_color_t colors[], const float colorPos[], int colorCount, sk_shader_tilemode_t cmode, const sk_matrix_t* cmatrix) argument
75 sk_shader_new_radial_gradient(const sk_point_t* ccenter, float radius, const sk_color_t colors[], const float colorPos[], int colorCount, sk_shader_tilemode_t cmode, const sk_matrix_t* cmatrix) argument
99 sk_shader_new_sweep_gradient(const sk_point_t* ccenter, const sk_color_t colors[], const float colorPos[], int colorCount, const sk_matrix_t* cmatrix) argument
117 sk_shader_new_two_point_conical_gradient(const sk_point_t* start, float startRadius, const sk_point_t* end, float endRadius, const sk_color_t colors[], const float colorPos[], int colorCount, sk_shader_tilemode_t cmode, const sk_matrix_t* cmatrix) argument
/external/skia/src/codec/
H A DSkIcoCodec.cpp251 int* colorCount, int* rowsDecoded) {
266 result = embeddedCodec->getPixels(dstInfo, dst, dstRowBytes, &opts, colorTable, colorCount);
287 const SkCodec::Options& options, SkPMColor colorTable[], int* colorCount) {
297 result = embeddedCodec->startScanlineDecode(dstInfo, &options, colorTable, colorCount);
323 SkPMColor* colorTable, int* colorCount) {
333 pixels, rowBytes, &options, colorTable, colorCount)) {
352 colorTable, colorCount) == kSuccess) {
248 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options& opts, SkPMColor* colorTable, int* colorCount, int* rowsDecoded) argument
286 onStartScanlineDecode(const SkImageInfo& dstInfo, const SkCodec::Options& options, SkPMColor colorTable[], int* colorCount) argument
321 onStartIncrementalDecode(const SkImageInfo& dstInfo, void* pixels, size_t rowBytes, const SkCodec::Options& options, SkPMColor* colorTable, int* colorCount) argument
H A DSkWbmpCodec.cpp25 SkPMColor* colorPtr, int* colorCount) {
29 *colorCount = 2;
24 setup_color_table(SkColorType colorType, SkPMColor* colorPtr, int* colorCount) argument
/external/deqp/modules/egl/
H A DteglNativeColorMappingTests.cpp323 bool testNativeWindow (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativeWindow& nativeWindow, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, int waitFrames, size_t colorCount, const tcu::Vec4* colors) argument
338 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++)
366 bool testNativePixmap (TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) argument
381 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++)
407 bool testNativePixmapCopy (TestLog& log, const Library& egl, eglu::NativePixmap& nativePixmap, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, size_t colorCount, const tcu::Vec4* colors) argument
421 for (int colorNdx = 0; colorNdx < (int)colorCount; colorNdx++)
/external/skia/src/pdf/
H A DSkPDFShader.cpp218 int colorCount = info.fColorCount; local
219 SkTDArray<SkColor> colors(info.fColors, colorCount);
220 SkTDArray<SkScalar> colorOffsets(info.fColorOffsets, colorCount);
223 while (i < colorCount - 1) {
231 colorCount -= 1;
239 for (i = 1; i < colorCount - 1; i++) {
249 SkAutoSTMalloc<4, ColorTuple> colorDataAlloc(colorCount);
251 for (int i = 0; i < colorCount; i++) {
258 if (colorCount == 2)
271 for (int i = 1; i < colorCount;
[all...]
/external/skia/tests/
H A DCodecTest.cpp690 int colorCount; local
692 &colorCount);
706 colorStorage, &colorCount);
/external/skia/dm/
H A DDMSrcSink.cpp393 SkPMColor* colorPtr, int colorCount, CodecSrc::DstColorType dstColorType,
395 sk_sp<SkColorTable> colorTable(new SkColorTable(colorPtr, colorCount));
438 int colorCount = 256; local
482 colorPtr, &colorCount);
496 colorPtr, colorCount, fDstColorType);
526 colorPtr, &colorCount)) {
537 draw_to_canvas(canvas, bitmapInfo, pixels.get(), rowBytes, colorPtr, colorCount,
559 rowBytes, nullptr, colorPtr, &colorCount)) {
579 &colorCount)) {
593 draw_to_canvas(canvas, bitmapInfo, dst, rowBytes, colorPtr, colorCount, fDstColorTyp
392 draw_to_canvas(SkCanvas* canvas, const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor* colorPtr, int colorCount, CodecSrc::DstColorType dstColorType, SkScalar left = 0, SkScalar top = 0) argument
829 int colorCount = 256; local
953 int colorCount = 256; local
[all...]
/external/skia/fuzz/
H A DFuzzCanvas.cpp303 static void fuzz_gradient_stops(Fuzz* fuzz, SkScalar* pos, int colorCount) { argument
305 for (int i = 0; i < colorCount; ++i) {
310 for (int i = 0; i < colorCount; ++i) {
313 // SkASSERT(fabs(pos[colorCount - 1] - 1.0f) < 0.00001f);
314 pos[colorCount - 1] = 1.0f;
390 int colorCount; local
393 fuzz->nextRange(&colorCount, 2, kMaxColors);
394 fuzz->nextN(colors, colorCount);
400 fuzz_gradient_stops(fuzz, pos, colorCount);
402 return SkGradientShader::MakeLinear(pts, colors, usePos ? pos : nullptr, colorCount,
409 int colorCount; local
429 int colorCount; local
449 int colorCount; local
[all...]
/external/skia/src/effects/gradients/
H A DSkGradientShader.cpp171 Thus colorCount (the caller's value, and fColorCount (our value) may
173 colorCount = 2
844 const SkScalar pos[], int colorCount,
846 SkASSERT(colorCount > 1);
851 desc->fCount = colorCount;
924 const SkScalar pos[], int colorCount,
928 ColorConverter converter(colors, colorCount);
929 return MakeLinear(pts, converter.fColors4f.begin(), nullptr, pos, colorCount, mode, flags,
936 const SkScalar pos[], int colorCount,
943 if (!valid_grad(colors, pos, colorCount, mod
842 desc_init(SkGradientShaderBase::Descriptor* desc, const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
922 MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
933 MakeLinear(const SkPoint pts[2], const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
961 MakeRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
972 MakeRadial(const SkPoint& center, SkScalar radius, const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
1000 MakeTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
1015 MakeTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
1076 MakeSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int colorCount, uint32_t flags, const SkMatrix* localMatrix) argument
1087 MakeSweep(SkScalar cx, SkScalar cy, const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], int colorCount, uint32_t flags, const SkMatrix* localMatrix) argument
[all...]

Completed in 1932 milliseconds