Home
last modified time | relevance | path

Searched refs:SkEncodedInfo (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/src/codec/
DSkBmpCodec.cpp434 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 …]
DSkPngCodec.cpp465 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 …]
DSkJpegDecoderMgr.cpp49 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()
DSkWebpCodec.cpp107 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 …]
DSkWbmpCodec.cpp109 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()
DSkBmpStandardCodec.cpp17 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()
DSkSwizzler.cpp808 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 …]
DSkCodecPriv.h301 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()
DSkJpegCodec.cpp218 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()
DSkGifCodec.cpp90 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()
DSkJpegDecoderMgr.h49 bool getEncodedColor(SkEncodedInfo::Color* outColor);
DSkRawCodec.cpp518 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;
DSkWebpCodec.h41 SkWebpCodec(int width, int height, const SkEncodedInfo&, sk_sp<SkColorSpace>, SkStream*,
DSkBmpMaskCodec.h34 SkBmpMaskCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
DSkWbmpCodec.h47 SkWbmpCodec(int width, int height, const SkEncodedInfo&, SkStream*);
DSkIcoCodec.h82 SkIcoCodec(int width, int height, const SkEncodedInfo& info,
DSkBmpStandardCodec.h42 SkBmpStandardCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
DSkSwizzler.h39 static SkSwizzler* CreateSwizzler(const SkEncodedInfo& encodedInfo, const SkPMColor* ctable,
DSkGifCodec.h129 SkGifCodec(const SkEncodedInfo&, const SkImageInfo&, SkGifImageReader*);
DSkBmpRLECodec.h38 SkBmpRLECodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
DSkJpegCodec.h103 SkJpegCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
DSkBmpCodec.h41 SkBmpCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
DSkBmpMaskCodec.cpp15 SkBmpMaskCodec::SkBmpMaskCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream, in SkBmpMaskCodec()
/external/skia/include/codec/
DSkEncodedInfo.h15 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
DSkCodec.h114 const SkEncodedInfo& getEncodedInfo() const { return fEncodedInfo; } in getEncodedInfo()
659 const SkEncodedInfo&,
668 SkCodec(const SkEncodedInfo&,
809 const SkEncodedInfo fEncodedInfo;

12