/external/skia/src/codec/ |
D | SkBmpCodec.cpp | 434 SkEncodedInfo::Alpha alpha = inIco ? SkEncodedInfo::kBinary_Alpha : in ReadHeader() 435 SkEncodedInfo::kOpaque_Alpha; in ReadHeader() 438 SkEncodedInfo::Color color; in ReadHeader() 449 color = SkEncodedInfo::kBGRA_Color; in ReadHeader() 452 color = SkEncodedInfo::kPalette_Color; in ReadHeader() 459 color = inIco ? SkEncodedInfo::kBGRA_Color : SkEncodedInfo::kBGR_Color; in ReadHeader() 467 alpha = SkEncodedInfo::kUnpremul_Alpha; in ReadHeader() 468 color = SkEncodedInfo::kBGRA_Color; in ReadHeader() 470 color = SkEncodedInfo::kBGRX_Color; in ReadHeader() 484 const SkEncodedInfo info = SkEncodedInfo::Make(color, alpha, bitsPerComponent); in ReadHeader() [all …]
|
D | SkPngCodec.cpp | 465 static SkColorSpaceXform::ColorFormat png_select_xform_format(const SkEncodedInfo& info) { in png_select_xform_format() 468 if (SkEncodedInfo::kRGBA_Color == info.color()) { in png_select_xform_format() 470 } else if (SkEncodedInfo::kRGB_Color == info.color()) { in png_select_xform_format() 499 SkPngNormalDecoder(const SkEncodedInfo& info, const SkImageInfo& imageInfo, SkStream* stream, in SkPngNormalDecoder() 616 SkPngInterlacedDecoder(const SkEncodedInfo& info, const SkImageInfo& imageInfo, in SkPngInterlacedDecoder() 854 SkEncodedInfo::Color color; in infoCallback() 855 SkEncodedInfo::Alpha alpha; in infoCallback() 866 color = SkEncodedInfo::kPalette_Color; in infoCallback() 869 SkEncodedInfo::kUnpremul_Alpha : SkEncodedInfo::kOpaque_Alpha; in infoCallback() 875 color = SkEncodedInfo::kRGBA_Color; in infoCallback() [all …]
|
D | SkJpegDecoderMgr.cpp | 49 bool JpegDecoderMgr::getEncodedColor(SkEncodedInfo::Color* outColor) { in getEncodedColor() 52 *outColor = SkEncodedInfo::kGray_Color; in getEncodedColor() 55 *outColor = SkEncodedInfo::kYUV_Color; in getEncodedColor() 58 *outColor = SkEncodedInfo::kRGB_Color; in getEncodedColor() 61 *outColor = SkEncodedInfo::kYCCK_Color; in getEncodedColor() 64 *outColor = SkEncodedInfo::kInvertedCMYK_Color; in getEncodedColor()
|
D | SkWebpCodec.cpp | 107 SkEncodedInfo::Color color; in NewFromStream() 108 SkEncodedInfo::Alpha alpha; in NewFromStream() 118 color = SkEncodedInfo::kBGRA_Color; in NewFromStream() 119 alpha = SkEncodedInfo::kUnpremul_Alpha; in NewFromStream() 124 color = SkEncodedInfo::kYUVA_Color; in NewFromStream() 125 alpha = SkEncodedInfo::kUnpremul_Alpha; in NewFromStream() 127 color = SkEncodedInfo::kYUV_Color; in NewFromStream() 128 alpha = SkEncodedInfo::kOpaque_Alpha; in NewFromStream() 133 color = SkEncodedInfo::kBGRA_Color; in NewFromStream() 134 alpha = SkEncodedInfo::kUnpremul_Alpha; in NewFromStream() [all …]
|
D | SkWbmpCodec.cpp | 109 SkWbmpCodec::SkWbmpCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream) in SkWbmpCodec() 169 SkEncodedInfo info = SkEncodedInfo::Make(SkEncodedInfo::kGray_Color, in NewFromStream() 170 SkEncodedInfo::kOpaque_Alpha, 1); in NewFromStream()
|
D | SkBmpStandardCodec.cpp | 17 SkBmpStandardCodec::SkBmpStandardCodec(int width, int height, const SkEncodedInfo& info, in SkBmpStandardCodec() 169 SkEncodedInfo encodedInfo = this->getEncodedInfo(); in initializeSwizzler() 172 encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kPalette_Color, in initializeSwizzler() 175 encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kBGR_Color, in initializeSwizzler() 176 SkEncodedInfo::kOpaque_Alpha, 8); in initializeSwizzler()
|
D | SkSwizzler.cpp | 808 SkSwizzler* SkSwizzler::CreateSwizzler(const SkEncodedInfo& encodedInfo, in CreateSwizzler() 814 if (SkEncodedInfo::kPalette_Color == encodedInfo.color() && nullptr == ctable) { in CreateSwizzler() 824 case SkEncodedInfo::kGray_Color: in CreateSwizzler() 825 case SkEncodedInfo::kYUV_Color: in CreateSwizzler() 846 case SkEncodedInfo::kInvertedCMYK_Color: in CreateSwizzler() 847 case SkEncodedInfo::kYCCK_Color: in CreateSwizzler() 853 case SkEncodedInfo::kRGBA_Color: in CreateSwizzler() 866 case SkEncodedInfo::kRGB_Color: in CreateSwizzler() 878 const bool premultiply = (SkEncodedInfo::kOpaque_Alpha != encodedInfo.alpha()) && in CreateSwizzler() 882 case SkEncodedInfo::kGray_Color: in CreateSwizzler() [all …]
|
D | SkCodecPriv.h | 301 static inline bool needs_premul(const SkImageInfo& dstInfo, const SkEncodedInfo& encodedInfo) { in needs_premul() 303 SkEncodedInfo::kUnpremul_Alpha == encodedInfo.alpha(); in needs_premul() 326 static inline bool apply_xform_on_decode(SkColorType dstColorType, SkEncodedInfo::Color srcColor) { in apply_xform_on_decode() 328 return SkEncodedInfo::kPalette_Color != srcColor || kRGBA_F16_SkColorType == dstColorType; in apply_xform_on_decode()
|
D | SkJpegCodec.cpp | 218 SkEncodedInfo::Color color; in ReadHeader() 224 SkEncodedInfo info = SkEncodedInfo::Make(color, SkEncodedInfo::kOpaque_Alpha, 8); in ReadHeader() 283 SkJpegCodec::SkJpegCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream, in SkJpegCodec() 644 SkEncodedInfo swizzlerInfo = this->getEncodedInfo(); in initializeSwizzler() 646 swizzlerInfo = SkEncodedInfo::Make(SkEncodedInfo::kInvertedCMYK_Color, in initializeSwizzler()
|
D | SkGifCodec.cpp | 90 const auto alpha = reader->firstFrameHasAlpha() ? SkEncodedInfo::kBinary_Alpha in NewFromStream() 91 : SkEncodedInfo::kOpaque_Alpha; in NewFromStream() 95 const auto encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kPalette_Color, alpha, 8); in NewFromStream() 118 SkGifCodec::SkGifCodec(const SkEncodedInfo& encodedInfo, const SkImageInfo& imageInfo, in SkGifCodec()
|
D | SkJpegDecoderMgr.h | 49 bool getEncodedColor(SkEncodedInfo::Color* outColor);
|
D | SkRawCodec.cpp | 518 const SkEncodedInfo& getEncodedInfo() const { in getEncodedInfo() 615 , fEncodedInfo(SkEncodedInfo::Make(SkEncodedInfo::kRGB_Color, in SkDngImage() 616 SkEncodedInfo::kOpaque_Alpha, 8)) in SkDngImage() 628 SkEncodedInfo fEncodedInfo;
|
D | SkWebpCodec.h | 41 SkWebpCodec(int width, int height, const SkEncodedInfo&, sk_sp<SkColorSpace>, SkStream*,
|
D | SkBmpMaskCodec.h | 34 SkBmpMaskCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
|
D | SkWbmpCodec.h | 47 SkWbmpCodec(int width, int height, const SkEncodedInfo&, SkStream*);
|
D | SkIcoCodec.h | 82 SkIcoCodec(int width, int height, const SkEncodedInfo& info,
|
D | SkBmpStandardCodec.h | 42 SkBmpStandardCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
|
D | SkSwizzler.h | 39 static SkSwizzler* CreateSwizzler(const SkEncodedInfo& encodedInfo, const SkPMColor* ctable,
|
D | SkGifCodec.h | 129 SkGifCodec(const SkEncodedInfo&, const SkImageInfo&, SkGifImageReader*);
|
D | SkBmpRLECodec.h | 38 SkBmpRLECodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
|
D | SkJpegCodec.h | 103 SkJpegCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
|
D | SkBmpCodec.h | 41 SkBmpCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
|
D | SkBmpMaskCodec.cpp | 15 SkBmpMaskCodec::SkBmpMaskCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream, in SkBmpMaskCodec()
|
/external/skia/include/codec/ |
D | SkEncodedInfo.h | 15 struct SkEncodedInfo { struct 70 static SkEncodedInfo Make(Color color, Alpha alpha, int bitsPerComponent) { in Make() argument 113 return SkEncodedInfo(color, alpha, bitsPerComponent); in Make() 188 SkEncodedInfo(Color color, Alpha alpha, uint8_t bitsPerComponent) in SkEncodedInfo() argument
|
D | SkCodec.h | 114 const SkEncodedInfo& getEncodedInfo() const { return fEncodedInfo; } in getEncodedInfo() 659 const SkEncodedInfo&, 668 SkCodec(const SkEncodedInfo&, 809 const SkEncodedInfo fEncodedInfo;
|