Home
last modified time | relevance | path

Searched refs:encodedInfo (Results 1 – 10 of 10) sorted by relevance

/external/skqp/src/codec/
DSkSwizzler.cpp776 SkSwizzler* SkSwizzler::CreateSwizzler(const SkEncodedInfo& encodedInfo, in CreateSwizzler() argument
782 if (SkEncodedInfo::kPalette_Color == encodedInfo.color() && nullptr == ctable) { in CreateSwizzler()
791 switch (encodedInfo.color()) { in CreateSwizzler()
823 SkASSERT(16 == encodedInfo.bitsPerComponent() || in CreateSwizzler()
824 8 == encodedInfo.bitsPerComponent()); in CreateSwizzler()
825 if (8 == encodedInfo.bitsPerComponent()) { in CreateSwizzler()
836 SkASSERT(16 == encodedInfo.bitsPerComponent()); in CreateSwizzler()
846 const bool premultiply = (SkEncodedInfo::kOpaque_Alpha != encodedInfo.alpha()) && in CreateSwizzler()
849 switch (encodedInfo.color()) { in CreateSwizzler()
851 switch (encodedInfo.bitsPerComponent()) { in CreateSwizzler()
[all …]
DSkBmpStandardCodec.cpp153 SkEncodedInfo encodedInfo = this->getEncodedInfo(); in initializeSwizzler() local
156 encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kPalette_Color, in initializeSwizzler()
157 encodedInfo.alpha(), this->bitsPerPixel()); in initializeSwizzler()
159 encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kBGR_Color, in initializeSwizzler()
179 fSwizzler.reset(SkSwizzler::CreateSwizzler(encodedInfo, colorPtr, swizzlerInfo, in initializeSwizzler()
DSkGifCodec.cpp94 const auto encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kPalette_Color, alpha, 8); in MakeFromStream() local
105 return std::unique_ptr<SkCodec>(new SkGifCodec(encodedInfo, imageInfo, reader.release())); in MakeFromStream()
113 SkGifCodec::SkGifCodec(const SkEncodedInfo& encodedInfo, const SkImageInfo& imageInfo, in SkGifCodec() argument
115 : INHERITED(encodedInfo, imageInfo, SkColorSpaceXform::kRGBA_8888_ColorFormat, nullptr) in SkGifCodec()
DSkPngCodec.cpp936 SkEncodedInfo encodedInfo = SkEncodedInfo::Make(color, alpha, bitDepth); in infoCallback() local
937 SkImageInfo imageInfo = encodedInfo.makeImageInfo(origWidth, origHeight, colorSpace); in infoCallback()
957 *fOutCodec = new SkPngNormalDecoder(encodedInfo, imageInfo, in infoCallback()
960 *fOutCodec = new SkPngInterlacedDecoder(encodedInfo, imageInfo, in infoCallback()
972 SkPngCodec::SkPngCodec(const SkEncodedInfo& encodedInfo, const SkImageInfo& imageInfo, in SkPngCodec() argument
975 : INHERITED(encodedInfo, imageInfo, png_select_xform_format(encodedInfo), std::move(stream)) in SkPngCodec()
DSkSwizzler.h39 static SkSwizzler* CreateSwizzler(const SkEncodedInfo& encodedInfo, const SkPMColor* ctable,
/external/skia/src/codec/
DSkSwizzler.cpp808 std::unique_ptr<SkSwizzler> SkSwizzler::Make(const SkEncodedInfo& encodedInfo, in Make() argument
813 if (SkEncodedInfo::kPalette_Color == encodedInfo.color() && nullptr == ctable) { in Make()
820 const bool premultiply = (SkEncodedInfo::kOpaque_Alpha != encodedInfo.alpha()) && in Make()
823 switch (encodedInfo.color()) { in Make()
825 switch (encodedInfo.bitsPerComponent()) { in Make()
903 switch (encodedInfo.bitsPerComponent()) { in Make()
943 if (16 == encodedInfo.bitsPerComponent()) { in Make()
948 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
953 if (16 == encodedInfo.bitsPerComponent()) { in Make()
958 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
[all …]
DSkBmpStandardCodec.cpp153 SkEncodedInfo encodedInfo = this->getEncodedInfo(); in initializeSwizzler() local
156 encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kPalette_Color, in initializeSwizzler()
157 encodedInfo.alpha(), this->bitsPerPixel()); in initializeSwizzler()
159 encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kBGR_Color, in initializeSwizzler()
178 fSwizzler = SkSwizzler::Make(encodedInfo, colorPtr, swizzlerInfo, swizzlerOptions); in initializeSwizzler()
DSkGifCodec.cpp94 const auto encodedInfo = SkEncodedInfo::Make(SkEncodedInfo::kPalette_Color, alpha, 8); in MakeFromStream() local
105 return std::unique_ptr<SkCodec>(new SkGifCodec(encodedInfo, imageInfo, reader.release())); in MakeFromStream()
113 SkGifCodec::SkGifCodec(const SkEncodedInfo& encodedInfo, const SkImageInfo& imageInfo, in SkGifCodec() argument
115 : INHERITED(encodedInfo, imageInfo, SkColorSpaceXform::kRGBA_8888_ColorFormat, nullptr) in SkGifCodec()
DSkPngCodec.cpp945 SkEncodedInfo encodedInfo = SkEncodedInfo::Make(color, alpha, bitDepth); in infoCallback() local
946 SkImageInfo imageInfo = encodedInfo.makeImageInfo(origWidth, origHeight, colorSpace); in infoCallback()
966 *fOutCodec = new SkPngNormalDecoder(encodedInfo, imageInfo, in infoCallback()
969 *fOutCodec = new SkPngInterlacedDecoder(encodedInfo, imageInfo, in infoCallback()
981 SkPngCodec::SkPngCodec(const SkEncodedInfo& encodedInfo, const SkImageInfo& imageInfo, in SkPngCodec() argument
984 : INHERITED(encodedInfo, imageInfo, png_select_xform_format(encodedInfo), std::move(stream)) in SkPngCodec()
DSkSwizzler.h35 static std::unique_ptr<SkSwizzler> Make(const SkEncodedInfo& encodedInfo,