Home
last modified time | relevance | path

Searched refs:SkSwizzler (Results 1 – 14 of 14) sorted by relevance

/external/skia/src/codec/
DSkSwizzler.cpp14 SkSwizzler::ResultAlpha SkSwizzler::GetResult(uint8_t zeroAlpha, in GetResult()
24 static SkSwizzler::ResultAlpha swizzle_small_index_to_index( in swizzle_small_index_to_index()
47 static SkSwizzler::ResultAlpha swizzle_small_index_to_n32( in swizzle_small_index_to_n32()
73 static SkSwizzler::ResultAlpha swizzle_index_to_index( in swizzle_index_to_index()
89 static SkSwizzler::ResultAlpha swizzle_index_to_n32( in swizzle_index_to_n32()
103 static SkSwizzler::ResultAlpha swizzle_index_to_n32_skipZ( in swizzle_index_to_n32_skipZ()
123 static SkSwizzler::ResultAlpha swizzle_gray_to_n32( in swizzle_gray_to_n32()
131 return SkSwizzler::kOpaque_ResultAlpha; in swizzle_gray_to_n32()
134 static SkSwizzler::ResultAlpha swizzle_gray_to_gray( in swizzle_gray_to_gray()
138 return SkSwizzler::kOpaque_ResultAlpha; in swizzle_gray_to_gray()
[all …]
DSkMaskSwizzler.cpp12 static SkSwizzler::ResultAlpha swizzle_mask16_to_n32_opaque( in swizzle_mask16_to_n32_opaque()
25 return SkSwizzler::kOpaque_ResultAlpha; in swizzle_mask16_to_n32_opaque()
28 static SkSwizzler::ResultAlpha swizzle_mask16_to_n32_unpremul( in swizzle_mask16_to_n32_unpremul()
47 static SkSwizzler::ResultAlpha swizzle_mask16_to_n32_premul( in swizzle_mask16_to_n32_premul()
66 static SkSwizzler::ResultAlpha swizzle_mask24_to_n32_opaque( in swizzle_mask24_to_n32_opaque()
78 return SkSwizzler::kOpaque_ResultAlpha; in swizzle_mask24_to_n32_opaque()
81 static SkSwizzler::ResultAlpha swizzle_mask24_to_n32_unpremul( in swizzle_mask24_to_n32_unpremul()
99 static SkSwizzler::ResultAlpha swizzle_mask24_to_n32_premul( in swizzle_mask24_to_n32_premul()
117 static SkSwizzler::ResultAlpha swizzle_mask32_to_n32_opaque( in swizzle_mask32_to_n32_opaque()
130 return SkSwizzler::kOpaque_ResultAlpha; in swizzle_mask32_to_n32_opaque()
[all …]
DSkJpegCodec.cpp35 SkSwizzler::SrcConfig get_src_config(const jpeg_decompress_struct& dinfo) { in get_src_config()
38 return SkSwizzler::kRGBX; in get_src_config()
41 return SkSwizzler::kRGB; in get_src_config()
45 return SkSwizzler::kRGBX; in get_src_config()
49 return SkSwizzler::kRGB_565; in get_src_config()
53 return SkSwizzler::kGray; in get_src_config()
55 return SkSwizzler::kUnknown; in get_src_config()
287 SkSwizzler::SrcConfig srcConfig = get_src_config(*fDecoderMgr->dinfo()); in initializeSwizzler()
288 fSwizzler.reset(SkSwizzler::CreateSwizzler(srcConfig, NULL, dstInfo, dst, dstRowBytes, in initializeSwizzler()
290 fSrcRowBytes = SkSwizzler::BytesPerPixel(srcConfig) * dstInfo.width(); in initializeSwizzler()
[all …]
DSkCodec_libpng.cpp369 , fSrcConfig(SkSwizzler::kUnknown) in SkPngCodec()
451 fSrcConfig = SkSwizzler::kIndex; in initializeSwizzler()
460 fSrcConfig = SkSwizzler::kGray; in initializeSwizzler()
462 fSrcConfig = SkSwizzler::kRGBX; in initializeSwizzler()
464 fSrcConfig = SkSwizzler::kRGBA; in initializeSwizzler()
472 fSwizzler.reset(SkSwizzler::CreateSwizzler(fSrcConfig, colors, requestedInfo, in initializeSwizzler()
547 const int bpp = SkSwizzler::BytesPerPixel(fSrcConfig); in onGetPixels()
565 fReallyHasAlpha |= !SkSwizzler::IsOpaque(fSwizzler->next(row)); in onGetPixels()
569 storage.reset(requestedInfo.width() * SkSwizzler::BytesPerPixel(fSrcConfig)); in onGetPixels()
573 fReallyHasAlpha |= !SkSwizzler::IsOpaque(fSwizzler->next(srcRow)); in onGetPixels()
[all …]
DSkCodec_libbmp.cpp772 SkSwizzler::Fill(dstStart, dstInfo, dstRowBytes, dstInfo.height() - y, fillColor, in decodeMask()
780 SkSwizzler::ResultAlpha r = maskSwizzler->next(srcRow, row); in decodeMask()
781 transparent &= SkSwizzler::IsTransparent(r); in decodeMask()
917 SkSwizzler::Fill(dst, dstInfo, dstRowBytes, height, SK_ColorTRANSPARENT, NULL); in decodeRLE()
1088 SkSwizzler::SrcConfig config; in decode()
1093 config = SkSwizzler::kIndex1; in decode()
1097 config = SkSwizzler::kIndex2; in decode()
1101 config = SkSwizzler::kIndex4; in decode()
1105 config = SkSwizzler::kIndex; in decode()
1109 config = SkSwizzler::kBGR; in decode()
[all …]
DSkCodec_libgif.cpp415 SkAutoTDelete<SkSwizzler> swizzler(NULL);
427 SkSwizzler::Fill(dst, dstInfo, dstRowBytes, height, fillIndex, colorTable);
438 swizzler.reset(SkSwizzler::CreateSwizzler(
439 SkSwizzler::kIndex, colorTable, subsetDstInfo,
443 swizzler.reset(SkSwizzler::CreateSwizzler(
444 SkSwizzler::kIndex, colorTable, dstInfo, dst,
480 SkSwizzler::Fill(swizzler->getDstRow(), dstInfo, dstRowBytes,
DSkSwizzler.h15 class SkSwizzler : public SkNoncopyable {
127 static SkSwizzler* CreateSwizzler(SrcConfig, const SkPMColor* ctable,
249 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc,
DSkMaskSwizzler.h37 SkSwizzler::ResultAlpha next(const uint8_t* SK_RESTRICT src, int y);
46 typedef SkSwizzler::ResultAlpha (*RowProc)(
DSkCodec_libpng.h42 SkAutoTDelete<SkSwizzler> fSwizzler;
44 SkSwizzler::SrcConfig fSrcConfig;
DSkJpegCodec.h115 SkAutoTDelete<SkSwizzler> fSwizzler;
DSkCodecPriv.h31 SkSwizzler::GetResult(zeroAlpha, maxAlpha);
/external/skia/gyp/
Dcodec.gyp46 '../src/codec/SkSwizzler.cpp',
/external/skia/tests/
DSwizzlerTest.cpp39 SkSwizzler::Fill(imageStart, imageInfo, rowBytes, endRow - startRow + 1, colorOrIndex, in check_fill()
/external/skia/
DAndroid.mk85 src/codec/SkSwizzler.cpp \