/external/skia/tests/ |
H A D | BitmapCopyTest.cpp | 55 SkColorType dstColorType) { 58 if (canHaveAlpha(srcPremul.colorType()) && canHaveAlpha(dstColorType)) { 59 REPORTER_ASSERT(reporter, srcPremul.copyTo(&dst, dstColorType)); 60 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType); 66 REPORTER_ASSERT(reporter, srcOpaque.copyTo(&dst, dstColorType)); 67 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType); 53 test_isOpaque(skiatest::Reporter* reporter, const SkBitmap& srcOpaque, const SkBitmap& srcPremul, SkColorType dstColorType) argument
|
/external/skia/src/android/ |
H A D | SkBitmapRegionCodec.cpp | 53 SkColorType dstColorType = fCodec->computeOutputColorType(prefColorType); local 55 sk_sp<SkColorSpace> dstColorSpace = fCodec->computeOutputColorSpace(dstColorType, 58 dstColorType, dstAlphaType, dstColorSpace); 64 if (kIndex_8_SkColorType == dstColorType) { 85 if (kGray_8_SkColorType == dstColorType) { 128 if (kIndex_8_SkColorType == dstColorType) {
|
/external/skia/src/codec/ |
H A D | SkBmpRLECodec.cpp | 66 bool SkBmpRLECodec::createColorTable(SkColorType dstColorType, int* numColors) { argument 92 PackColorProc packARGB = choose_pack_color_proc(false, dstColorType);
|
H A D | SkBmpStandardCodec.cpp | 68 bool SkBmpStandardCodec::createColorTable(SkColorType dstColorType, SkAlphaType dstAlphaType, argument 94 SkColorType packColorType = dstColorType; 128 SkColorSpaceXform::ColorFormat dstFormat = select_xform_format_ct(dstColorType);
|
H A D | SkCodecPriv.h | 122 static inline uint64_t get_color_table_fill_value(SkColorType dstColorType, SkAlphaType alphaType, argument 125 switch (dstColorType) { 140 SkAssertResult(colorXform->apply(select_xform_format(dstColorType), &dstColor, 326 static inline bool apply_xform_on_decode(SkColorType dstColorType, SkEncodedInfo::Color srcColor) { argument 328 return SkEncodedInfo::kPalette_Color != srcColor || kRGBA_F16_SkColorType == dstColorType;
|
/external/skia/src/core/ |
H A D | SkBitmap.cpp | 736 bool SkBitmap::copyTo(SkBitmap* dst, SkColorType dstColorType, Allocator* alloc) const { argument 737 if (!this->canCopyTo(dstColorType)) { 750 SkImageInfo dstInfo = srcPM.info().makeColorType(dstColorType); 751 switch (dstColorType) { 783 if (dstColorType == kIndex_8_SkColorType) { 804 if (kRGBA_F16_SkColorType != dstColorType && kRGBA_F16_SkColorType != srcPM.colorType() && 820 if (srcPM.colorType() == dstColorType && tmpDst.getSize() == srcPM.getSize64()) {
|
/external/skia/dm/ |
H A D | DM.cpp | 375 static void push_codec_src(Path path, CodecSrc::Mode mode, CodecSrc::DstColorType dstColorType, argument 379 if (!simple || dstColorType != CodecSrc::kGetFromCanvas_DstColorType || scale != 1.0f) { 409 switch (dstColorType) { 438 CodecSrc* src = new CodecSrc(path, mode, dstColorType, dstAlphaType, scale); 442 static void push_android_codec_src(Path path, CodecSrc::DstColorType dstColorType, argument 447 switch (dstColorType) { 476 AndroidCodecSrc* src = new AndroidCodecSrc(path, dstColorType, dstAlphaType, sampleSize); 665 static void push_brd_src(Path path, CodecSrc::DstColorType dstColorType, BRDSrc::Mode mode, argument 679 switch (dstColorType) { 697 BRDSrc* src = new BRDSrc(path, mode, dstColorType, sampleSiz [all...] |
H A D | DMSrcSink.cpp | 93 BRDSrc::BRDSrc(Path path, Mode mode, CodecSrc::DstColorType dstColorType, uint32_t sampleSize) argument 96 , fDstColorType(dstColorType) 285 CodecSrc::CodecSrc(Path path, Mode mode, DstColorType dstColorType, SkAlphaType dstAlphaType, argument 289 , fDstColorType(dstColorType) 301 static void swap_rb_if_necessary(SkBitmap& bitmap, CodecSrc::DstColorType dstColorType) { argument 302 if (CodecSrc::kNonNative8888_Always_DstColorType != dstColorType) { 343 CodecSrc::DstColorType dstColorType, SkAlphaType dstAlphaType) { 344 switch (dstColorType) { 393 SkPMColor* colorPtr, int colorCount, CodecSrc::DstColorType dstColorType, 399 swap_rb_if_necessary(bitmap, dstColorType); 342 get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType, CodecSrc::DstColorType dstColorType, SkAlphaType dstAlphaType) argument 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 784 AndroidCodecSrc(Path path, CodecSrc::DstColorType dstColorType, SkAlphaType dstAlphaType, int sampleSize) argument [all...] |
/external/skia/gm/ |
H A D | readpixels.cpp | 127 static void draw_image(SkCanvas* canvas, SkImage* image, SkColorType dstColorType, argument 130 size_t rowBytes = image->width() * SkColorTypeBytesPerPixel(dstColorType); 132 dstColorSpace = fix_for_colortype(dstColorSpace.get(), dstColorType); 133 SkImageInfo dstInfo = SkImageInfo::Make(image->width(), image->height(), dstColorType, 142 if (!xform->apply(select_xform_format(dstColorType), data->writable_data(), 143 select_xform_format(dstColorType), data->data(), 155 SkColorSpace::MakeSRGB().get(), dstColorType); 202 for (SkColorType dstColorType : colorTypes) { 204 draw_image(canvas, image.get(), dstColorType, dstAlphaType, 262 for (SkColorType dstColorType [all...] |
H A D | showmiplevels.cpp | 219 void copy_to(SkBitmap* dst, SkColorType dstColorType, const SkBitmap& src) { argument 220 if (kGray_8_SkColorType == dstColorType) { 224 src.copyTo(dst, dstColorType);
|