Searched refs:ct (Results 201 - 225 of 341) sorted by last modified time

1234567891011>>

/external/chromium_org/third_party/skia/samplecode/
H A DSampleEncode.cpp29 static void make_image(SkBitmap* bm, SkColorType ct, int configIndex) { argument
32 const SkImageInfo info = SkImageInfo::Make(width, height, ct, kPremul_SkAlphaType);
45 switch (ct) {
H A DSamplePatch.cpp123 int ct = ScalarTo255(t); local
124 return SkColorSetARGB(0xFF, cs, 0, 0) + SkColorSetARGB(0, 0, ct, 0);
H A DSampleTiling.cpp27 static void makebm(SkBitmap* bm, SkColorType ct, int w, int h) { argument
28 bm->allocPixels(SkImageInfo::Make(w, h, ct, kPremul_SkAlphaType));
/external/chromium_org/third_party/skia/src/core/
H A DSkBitmap.cpp341 SkColorTable* ct, void (*releaseProc)(void* addr, void* context),
351 SkPixelRef* pr = SkMallocPixelRef::NewWithProc(correctedInfo, rb, ct, pixels, releaseProc,
1068 SkColorTable* ct = src.getColorTable(); local
1069 if (ct) {
1070 const SkPMColor* SK_RESTRICT table = ct->lockColors();
1079 ct->unlockColors();
1183 SkColorTable* ct = bitmap.getColorTable(); local
1184 if (kIndex_8_SkColorType == info.colorType() && ct) {
1186 ct->writeToBuffer(*buffer);
340 installPixels(const SkImageInfo& requestedInfo, void* pixels, size_t rb, SkColorTable* ct, void (*releaseProc)(void* addr, void* context), void* context) argument
H A DSkBlitMask_D32.cpp240 SkBlitMask::ColorProc SkBlitMask::ColorFactory(SkColorType ct, argument
243 ColorProc proc = PlatformColorProcs(ct, format, color);
248 switch (ct) {
558 SkBlitMask::RowProc SkBlitMask::RowFactory(SkColorType ct, argument
562 RowProc proc = PlatformRowProcs(ct, format, flags);
577 switch (ct) {
H A DSkBlitRow_D16.cpp224 SkBlitRow::Proc SkBlitRow::Factory(unsigned flags, SkColorType ct) { argument
231 switch (ct) {
H A DSkConfig8888.cpp52 static bool is_32bit_colortype(SkColorType ct) { argument
53 return kRGBA_8888_SkColorType == ct || kBGRA_8888_SkColorType == ct;
H A DSkMipMap.cpp126 const SkColorType ct = src.colorType(); local
128 switch (ct) {
160 size += SkColorTypeMinRowBytes(ct, width) * height;
183 rowBytes = SkToU32(SkColorTypeMinRowBytes(ct, width));
192 dstBM.installPixels(SkImageInfo::Make(width, height, ct, at), addr, rowBytes);
H A DSkPaint.cpp358 void SkPaint::setStrokeCap(Cap ct) { argument
359 if ((unsigned)ct < kCapCount) {
360 GEN_ID_INC_EVAL((unsigned)ct != fBitfields.fCapType);
361 fBitfields.fCapType = SkToU8(ct);
364 SkDebugf("SkPaint::setStrokeCap(%d) out of range\n", ct);
/external/chromium_org/third_party/skia/src/gpu/
H A DGrContext.cpp1399 static SkColorType toggle_colortype32(SkColorType ct) { argument
1400 if (kRGBA_8888_SkColorType == ct) {
1403 SkASSERT(kBGRA_8888_SkColorType == ct);
H A DSkGpuDevice.cpp173 SkColorType ct = origInfo.colorType(); local
177 if (kRGB_565_SkColorType == ct) {
180 ct = kN32_SkColorType;
185 const SkImageInfo info = SkImageInfo::Make(origInfo.width(), origInfo.height(), ct, at);
H A DSkGr.cpp411 GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType ct, SkAlphaType) { argument
412 switch (ct) {
433 SkColorType ct; local
436 ct = kAlpha_8_SkColorType;
439 ct = kIndex_8_SkColorType;
442 ct = kRGB_565_SkColorType;
445 ct = kARGB_4444_SkColorType;
448 ct = kRGBA_8888_SkColorType;
451 ct = kBGRA_8888_SkColorType;
457 *ctOut = ct;
[all...]
/external/chromium_org/third_party/skia/src/images/
H A DSkDecodingImageGenerator.cpp69 virtual bool allocPixelRef(SkBitmap* bm, SkColorTable* ct) { argument
72 return bm->tryAllocPixels(NULL, ct);
78 bm->installPixels(fInfo, fTarget, fRowBytes, ct, NULL, NULL);
H A DSkImageDecoder.cpp142 SkColorType ct = fDefaultPref; local
146 ct = kIndex_8_SkColorType;
149 ct = kN32_SkColorType;
152 ct = kN32_SkColorType;
156 return ct;
H A DSkImageDecoder_libgif.cpp198 SkColorTable* ct = bm->getColorTable(); // Index8 must have it. local
199 SkASSERT(ct != NULL);
200 uint32_t count = ct->count();
H A DSkImageDecoder_libpng.cpp999 static transform_scanline_proc choose_proc(SkColorType ct, bool hasAlpha) { argument
1002 if (kIndex_8_SkColorType == ct) {
1020 if (gMap[i].fColorType == ct && gMap[i].fHasAlpha == hasAlpha) {
1107 int bitDepth, SkColorType ct,
1114 SkColorType ct = bitmap.colorType(); local
1121 switch (ct) {
1172 return doEncode(stream, bitmap, hasAlpha, colorType, bitDepth, ct, sig_bit);
1177 int bitDepth, SkColorType ct,
1222 if (kIndex_8_SkColorType == ct) {
1223 SkColorTable* ct local
1175 doEncode(SkWStream* stream, const SkBitmap& bitmap, const bool& hasAlpha, int colorType, int bitDepth, SkColorType ct, png_color_8& sig_bit) argument
[all...]
H A DSkImageDecoder_libwebp.cpp172 const SkColorType ct = decodedBitmap->colorType(); local
174 if (ct == kN32_SkColorType) {
182 } else if (ct == kARGB_4444_SkColorType) {
184 } else if (ct == kRGB_565_SkColorType) {
336 const SkColorType ct = bitmap.colorType(); local
337 return ct == kARGB_4444_SkColorType || ct == kRGB_565_SkColorType || ct == kN32_SkColorType;
557 static ScanlineImporter ChooseImporter(SkColorType ct, bool hasAlpha, int* bpp) { argument
558 switch (ct) {
[all...]
H A DSkImageDecoder_wbmp.cpp122 SkColorTable* ct = SkNEW_ARGS(SkColorTable, (colors, 2, kOpaque_SkAlphaType)); local
123 SkAutoUnref aur(ct);
125 if (!this->allocPixelRef(decodedBitmap, ct)) {
H A DSkImageEncoder_argb.cpp74 static ScanlineImporter ChooseImporter(SkColorType ct) { argument
75 switch (ct) {
/external/chromium_org/third_party/skia/src/ports/
H A DSkFontHost_mac.cpp1435 CTFontRef ct = CTFontCreateWithGraphicsFont(cg, 0, NULL, NULL); local
1436 return ct ? NewFromFontRef(ct, NULL, true) : NULL;
/external/chromium_org/third_party/skia/src/utils/
H A DSkTextureCompressor_ASTC.cpp1461 const int ct = Dt * t;
1464 const int gt = (ct*(fWeightDimY - 1) + 32) >> 6;
/external/chromium_org/third_party/skia/src/views/
H A DSkWindow.cpp59 void SkWindow::setColorType(SkColorType ct) { argument
60 this->resize(fBitmap.width(), fBitmap.height(), ct);
63 void SkWindow::resize(int width, int height, SkColorType ct) { argument
64 if (ct == kUnknown_SkColorType)
65 ct = fColorType;
67 if (width != fBitmap.width() || height != fBitmap.height() || ct != fColorType) {
68 fColorType = ct;
70 ct, kPremul_SkAlphaType));
/external/chromium_org/third_party/skia/src/views/sdl/
H A DSkOSWindow_SDL.cpp26 SkColorType ct; local
31 ct = kRGB_565_SkColorType;
35 ct = kN32_SkColorType;
42 return dst->installPixels(SkImageInfo::Make(src->w, src->h, ct, at), src->pixels, src->pitch);
/external/chromium_org/third_party/skia/tests/
H A DBitmapCopyTest.cpp28 static bool canHaveAlpha(SkColorType ct) { argument
29 return kRGB_565_SkColorType != ct;
198 SkColorType ct) {
201 if (kIndex_8_SkColorType == ct) {
206 srcOpaque->allocPixels(SkImageInfo::Make(W, H, ct, kOpaque_SkAlphaType),
208 srcPremul->allocPixels(SkImageInfo::Make(W, H, ct, kPremul_SkAlphaType),
385 SkColorTable* ct = NULL; local
387 ct = init_ctable(kPremul_SkAlphaType);
401 SkSafeUnref(ct);
197 setup_src_bitmaps(SkBitmap* srcOpaque, SkBitmap* srcPremul, SkColorType ct) argument
H A DImageDecodingTest.cpp765 virtual bool allocPixelRef(SkBitmap* bm, SkColorTable* ct) SK_OVERRIDE {
768 bm->setPixels(fPixels, ct);
773 return bm->tryAllocPixels(NULL, ct);

Completed in 593 milliseconds

1234567891011>>