/external/skia/src/ports/ |
D | SkImageDecoder_empty.cpp | 22 SkImageDecoder::SkImageDecoder() {} in SkImageDecoder() function in SkImageDecoder 24 SkImageDecoder::~SkImageDecoder() {} in ~SkImageDecoder() 26 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { in Factory() 30 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {} in copyFieldsToOther() argument 32 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Format*) { in DecodeFile() 36 SkImageDecoder::Result SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType, Mode) { in decode() 40 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkColorType, Mode, Format*) { in DecodeStream() 44 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, SkColorType, Mode, Format*) { in DecodeMemory() 48 bool SkImageDecoder::decodeYUV8Planes(SkStream*, SkISize[3], void*[3], in decodeYUV8Planes() 53 SkImageDecoder::Format SkImageDecoder::getFormat() const { in getFormat() [all …]
|
D | SkImageDecoder_CG.cpp | 57 class SkImageDecoder_CG : public SkImageDecoder { 140 SkImageDecoder::Result SkImageDecoder_CG::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 178 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 224 extern SkImageDecoder* image_decoder_from_stream(SkStreamRewindable*); 226 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable* stream) { in Factory() 227 SkImageDecoder* decoder = image_decoder_from_stream(stream); in Factory() 371 SkImageDecoder::Format fFormat; 376 { kUTTypeBMP, SkImageDecoder::kBMP_Format }, 377 { kUTTypeGIF, SkImageDecoder::kGIF_Format }, 378 { kUTTypeICO, SkImageDecoder::kICO_Format }, [all …]
|
D | SkImageDecoder_WIC.cpp | 51 class SkImageDecoder_WIC : public SkImageDecoder { 77 SkImageDecoder::Format fFormat; 81 { GUID_ContainerFormatBmp, SkImageDecoder::kBMP_Format }, 82 { GUID_ContainerFormatGif, SkImageDecoder::kGIF_Format }, 83 { GUID_ContainerFormatIco, SkImageDecoder::kICO_Format }, 84 { GUID_ContainerFormatJpeg, SkImageDecoder::kJPEG_Format }, 85 { GUID_ContainerFormatPng, SkImageDecoder::kPNG_Format }, 88 static SkImageDecoder::Format GuidContainerFormat_to_Format(REFGUID guid) { in GuidContainerFormat_to_Format() 94 return SkImageDecoder::kUnknown_Format; in GuidContainerFormat_to_Format() 97 SkImageDecoder::Result SkImageDecoder_WIC::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() [all …]
|
/external/skia/src/images/ |
D | SkImageDecoder.cpp | 17 SkImageDecoder::SkImageDecoder() in SkImageDecoder() function in SkImageDecoder 29 SkImageDecoder::~SkImageDecoder() { in ~SkImageDecoder() 34 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* other) { in copyFieldsToOther() 48 SkImageDecoder::Format SkImageDecoder::getFormat() const { in getFormat() 52 const char* SkImageDecoder::getFormatName() const { in getFormatName() 56 const char* SkImageDecoder::GetFormatName(Format format) { in GetFormatName() 86 SkPngChunkReader* SkImageDecoder::setPeeker(SkPngChunkReader* peeker) { in setPeeker() 91 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator* alloc) { in setAllocator() 96 void SkImageDecoder::setSampleSize(int size) { in setSampleSize() 103 bool SkImageDecoder::allocPixelRef(SkBitmap* bitmap, in allocPixelRef() [all …]
|
D | SkImageDecoder_pkm.cpp | 19 class SkPKMImageDecoder : public SkImageDecoder { 31 typedef SkImageDecoder INHERITED; 36 SkImageDecoder::Result SkPKMImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 56 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 112 static SkImageDecoder* sk_libpkm_dfactory(SkStreamRewindable* stream) { in sk_libpkm_dfactory() 121 static SkImageDecoder::Format get_format_pkm(SkStreamRewindable* stream) { in get_format_pkm() 123 return SkImageDecoder::kPKM_Format; in get_format_pkm() 125 return SkImageDecoder::kUnknown_Format; in get_format_pkm()
|
D | SkImageDecoder_libbmp.cpp | 19 class SkBMPImageDecoder : public SkImageDecoder { 31 typedef SkImageDecoder INHERITED; 48 static SkImageDecoder* sk_libbmp_dfactory(SkStreamRewindable* stream) { in sk_libbmp_dfactory() 57 static SkImageDecoder::Format get_format_bmp(SkStreamRewindable* stream) { in get_format_bmp() 59 return SkImageDecoder::kBMP_Format; in get_format_bmp() 61 return SkImageDecoder::kUnknown_Format; in get_format_bmp() 96 SkImageDecoder::Result SkBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 111 const bool justBounds = SkImageDecoder::kDecodeBounds_Mode == mode; in onDecode()
|
D | SkImageDecoder_wbmp.cpp | 18 class SkWBMPImageDecoder : public SkImageDecoder { 28 typedef SkImageDecoder INHERITED; 102 SkImageDecoder::Result SkWBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap, in onDecode() 117 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 155 static SkImageDecoder* sk_wbmp_dfactory(SkStreamRewindable* stream) { in sk_wbmp_dfactory() 164 static SkImageDecoder::Format get_format_wbmp(SkStreamRewindable* stream) { in get_format_wbmp() 167 return SkImageDecoder::kWBMP_Format; in get_format_wbmp() 169 return SkImageDecoder::kUnknown_Format; in get_format_wbmp()
|
D | SkImageDecoder_FactoryRegistrar.cpp | 19 SkImageDecoder* image_decoder_from_stream(SkStreamRewindable*); 21 SkImageDecoder* image_decoder_from_stream(SkStreamRewindable* stream) { in image_decoder_from_stream() 22 SkImageDecoder* codec = nullptr; in image_decoder_from_stream() 48 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable* stream) { in GetStreamFormat()
|
D | SkImageDecoder_astc.cpp | 19 class SkASTCImageDecoder : public SkImageDecoder { 31 typedef SkImageDecoder INHERITED; 46 SkImageDecoder::Result SkASTCImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 134 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 187 static SkImageDecoder* sk_libastc_dfactory(SkStreamRewindable* stream) { in sk_libastc_dfactory() 196 static SkImageDecoder::Format get_format_astc(SkStreamRewindable* stream) { in get_format_astc() 198 return SkImageDecoder::kASTC_Format; in get_format_astc() 200 return SkImageDecoder::kUnknown_Format; in get_format_astc()
|
D | SkImageDecoder_ktx.cpp | 36 class SkKTXImageDecoder : public SkImageDecoder { 48 typedef SkImageDecoder INHERITED; 51 SkImageDecoder::Result SkKTXImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 117 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 311 static SkImageDecoder* sk_libktx_dfactory(SkStreamRewindable* stream) { in sk_libktx_dfactory() 318 static SkImageDecoder::Format get_format_ktx(SkStreamRewindable* stream) { in get_format_ktx() 320 return SkImageDecoder::kKTX_Format; in get_format_ktx() 322 return SkImageDecoder::kUnknown_Format; in get_format_ktx()
|
D | SkImageDecoder_libico.cpp | 15 class SkICOImageDecoder : public SkImageDecoder { 27 typedef SkImageDecoder INHERITED; 76 SkImageDecoder::Result SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) in onDecode() 134 SkAutoTDelete<SkImageDecoder> otherDecoder(SkImageDecoder::Factory(&subStream)); in onDecode() 138 if (otherDecoder->getFormat() == SkImageDecoder::kICO_Format) { in onDecode() 255 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 441 static SkImageDecoder* sk_libico_dfactory(SkStreamRewindable* stream) { in sk_libico_dfactory() 450 static SkImageDecoder::Format get_format_ico(SkStreamRewindable* stream) { in get_format_ico() 452 return SkImageDecoder::kICO_Format; in get_format_ico() 454 return SkImageDecoder::kUnknown_Format; in get_format_ico()
|
D | SkImageDecoder_FactoryDefault.cpp | 13 extern SkImageDecoder* image_decoder_from_stream(SkStreamRewindable*); 15 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable* stream) { in Factory()
|
D | SkImageDecoder_libgif.cpp | 20 class SkGIFImageDecoder : public SkImageDecoder { 30 typedef SkImageDecoder INHERITED; 155 static SkImageDecoder::Result error_return(const SkBitmap& bm, const char msg[]) { in error_return() 161 return SkImageDecoder::kFailure; in error_return() 243 SkImageDecoder::Result SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* bm, Mode mode) { 329 if (SkImageDecoder::kDecodeBounds_Mode == mode) { 525 static SkImageDecoder* sk_libgif_dfactory(SkStreamRewindable* stream) { 534 static SkImageDecoder::Format get_format_gif(SkStreamRewindable* stream) { 536 return SkImageDecoder::kGIF_Format; 538 return SkImageDecoder::kUnknown_Format;
|
D | SkImageDecoder_libjpeg.cpp | 81 class SkJPEGImageDecoder : public SkImageDecoder { 104 typedef SkImageDecoder INHERITED; 177 static SkImageDecoder::Result return_failure(const jpeg_decompress_struct& cinfo, in return_failure() 180 return SkImageDecoder::kFailure; in return_failure() 221 static void set_dct_method(const SkImageDecoder& decoder, jpeg_decompress_struct* cinfo) { in set_dct_method() 286 const SkImageDecoder& decoder) { in adjust_out_color_space_and_dither() 354 SkImageDecoder::Result SkJPEGImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 398 if (1 == sampleSize && SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 422 if (SkImageDecoder::kDecodeBounds_Mode == mode && valid_output_dimensions(cinfo)) { in onDecode() 445 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() [all …]
|
D | SkImageDecoder_libwebp.cpp | 93 class SkWEBPImageDecoder: public SkImageDecoder { 125 typedef SkImageDecoder INHERITED; 161 static SkImageDecoder::Result return_failure(const SkBitmap& bm, const char msg[]) { in return_failure() 163 return SkImageDecoder::kFailure; // must always return kFailure in return_failure() 286 SkImageDecoder::Result SkWEBPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap, in onDecode() 306 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 535 static SkImageDecoder* sk_libwebp_dfactory(SkStreamRewindable* stream) { in sk_libwebp_dfactory() 545 static SkImageDecoder::Format get_format_webp(SkStreamRewindable* stream) { in get_format_webp() 548 return SkImageDecoder::kWEBP_Format; in get_format_webp() 550 return SkImageDecoder::kUnknown_Format; in get_format_webp()
|
D | SkJpegUtility.h | 37 skjpeg_source_mgr(SkStream* stream, SkImageDecoder* decoder); 43 SkImageDecoder* fDecoder;
|
/external/skia/include/core/ |
D | SkImageDecoder.h | 26 class SkImageDecoder : SkNoncopyable { 28 virtual ~SkImageDecoder(); 229 static SkImageDecoder* Factory(SkStreamRewindable*); 293 void copyFieldsToOther(SkImageDecoder* other); 308 SkImageDecoder(); 361 virtual SkImageDecoder* newDecoder(SkStreamRewindable*) = 0; 370 virtual SkImageDecoder* newDecoder(SkStreamRewindable* stream) { in newDecoder() 371 return SkImageDecoder::Factory(stream); in newDecoder() 378 SkImageDecoder *Create ## codec (); 383 SkImageDecoder* Create##codec() { return new Sk##codec; } [all …]
|
/external/skia/tools/ |
D | imgblur.cpp | 46 SkAutoTDelete<SkImageDecoder> codec(SkImageDecoder::Factory(&inputStream)); in tool_main() 57 SkImageDecoder::Result res = codec->decode(&inputStream, &src, in tool_main() 59 SkImageDecoder::kDecodePixels_Mode); in tool_main() 60 if (SkImageDecoder::kSuccess != res) { in tool_main()
|
/external/skia/bench/ |
D | SkipZeroesBench.cpp | 66 fDecoder.reset(SkImageDecoder::Factory(&fStream)); in onDelayedSetup() 86 SkDEBUGCODE(SkImageDecoder::Result result =) fDecoder->decode(&fStream, &bm, in onDraw() 87 SkImageDecoder::kDecodePixels_Mode); in onDraw() 89 if (SkImageDecoder::kFailure == result) { in onDraw() 106 SkAutoTDelete<SkImageDecoder> fDecoder;
|
/external/skia/gm/ |
D | cmykjpeg.cpp | 36 SkImageDecoder* codec = SkImageDecoder::Factory(&stream); in onOnceBeforeDraw() 40 codec->decode(&stream, &fBitmap, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in onOnceBeforeDraw()
|
D | pixelxorxfermode.cpp | 27 SkImageDecoder* codec = nullptr; in onOnceBeforeDraw() 31 codec = SkImageDecoder::Factory(&stream); in onOnceBeforeDraw() 35 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in onOnceBeforeDraw()
|
D | avoidxfermode.cpp | 27 SkImageDecoder* codec = nullptr; in onOnceBeforeDraw() 31 codec = SkImageDecoder::Factory(&stream); in onOnceBeforeDraw() 35 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in onOnceBeforeDraw()
|
/external/skia/samplecode/ |
D | SampleFilter2.cpp | 38 SkImageDecoder::DecodeFile(gNames[i], &fBitmaps[i], kN32_SkColorType, in Filter2View() 39 SkImageDecoder::kDecodePixels_Mode, nullptr); in Filter2View() 42 SkImageDecoder::DecodeFile(gNames[i-fBitmapCount/2], &fBitmaps[i], kRGB_565_SkColorType, in Filter2View() 43 SkImageDecoder::kDecodePixels_Mode, nullptr); in Filter2View()
|
D | SampleIdentityScale.cpp | 28 SkImageDecoder* codec = nullptr; in IdentityScaleView() 31 codec = SkImageDecoder::Factory(&stream); in IdentityScaleView() 35 codec->decode(&stream, &fBM, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); in IdentityScaleView()
|
D | SampleUnpremul.cpp | 171 SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(&stream)); in decodeCurrFile() 180 SkImageDecoder::kDecodePixels_Mode) != SkImageDecoder::kFailure; in decodeCurrFile()
|