/external/skia/src/ports/ |
D | SkImageDecoder_empty.cpp | 20 SkImageDecoder::SkImageDecoder() {} in SkImageDecoder() function in SkImageDecoder 22 SkImageDecoder::~SkImageDecoder() {} in ~SkImageDecoder() 24 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { in Factory() 28 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {} in copyFieldsToOther() argument 30 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Format*) { in DecodeFile() 34 SkImageDecoder::Result SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType, Mode) { in decode() 38 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkColorType, Mode, Format*) { in DecodeStream() 42 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, SkColorType, Mode, Format*) { in DecodeMemory() 46 bool SkImageDecoder::buildTileIndex(SkStreamRewindable*, int *width, int *height) { in buildTileIndex() 50 bool SkImageDecoder::onBuildTileIndex(SkStreamRewindable* stream, in onBuildTileIndex() [all …]
|
D | SkImageDecoder_CG.cpp | 51 class SkImageDecoder_CG : public SkImageDecoder { 134 SkImageDecoder::Result SkImageDecoder_CG::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 161 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 207 extern SkImageDecoder* image_decoder_from_stream(SkStreamRewindable*); 209 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable* stream) { in Factory() 210 SkImageDecoder* decoder = image_decoder_from_stream(stream); in Factory() 354 SkImageDecoder::Format fFormat; 359 { kUTTypeBMP, SkImageDecoder::kBMP_Format }, 360 { kUTTypeGIF, SkImageDecoder::kGIF_Format }, 361 { kUTTypeICO, SkImageDecoder::kICO_Format }, [all …]
|
D | SkImageDecoder_WIC.cpp | 49 class SkImageDecoder_WIC : public SkImageDecoder { 75 SkImageDecoder::Format fFormat; 79 { GUID_ContainerFormatBmp, SkImageDecoder::kBMP_Format }, 80 { GUID_ContainerFormatGif, SkImageDecoder::kGIF_Format }, 81 { GUID_ContainerFormatIco, SkImageDecoder::kICO_Format }, 82 { GUID_ContainerFormatJpeg, SkImageDecoder::kJPEG_Format }, 83 { GUID_ContainerFormatPng, SkImageDecoder::kPNG_Format }, 86 static SkImageDecoder::Format GuidContainerFormat_to_Format(REFGUID guid) { in GuidContainerFormat_to_Format() 92 return SkImageDecoder::kUnknown_Format; in GuidContainerFormat_to_Format() 95 SkImageDecoder::Result SkImageDecoder_WIC::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() [all …]
|
D | SkImageGenerator_skia.cpp | 37 SkAutoTDelete<SkImageDecoder> fDecoder; 41 SkImageDecoderGenerator(const SkImageInfo& info, SkImageDecoder* decoder, SkData* data) in SkImageDecoderGenerator() 60 const SkImageDecoder::Result result = fDecoder->decode(&stream, &bm, info.colorType(), in onGetPixels() 61 SkImageDecoder::kDecodePixels_Mode); in onGetPixels() 62 if (SkImageDecoder::kFailure == result) { in onGetPixels() 79 if (SkImageDecoder::kPartialSuccess == result) { in onGetPixels() 101 SkImageDecoder* decoder = SkImageDecoder::Factory(&stream); in NewFromData() 108 if (!decoder->decode(&stream, &bm, kUnknown_SkColorType, SkImageDecoder::kDecodeBounds_Mode)) { in NewFromData()
|
/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 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker* 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 | 18 class SkPKMImageDecoder : public SkImageDecoder { 30 typedef SkImageDecoder INHERITED; 35 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 | 18 class SkBMPImageDecoder : public SkImageDecoder { 30 typedef SkImageDecoder INHERITED; 47 static SkImageDecoder* sk_libbmp_dfactory(SkStreamRewindable* stream) { in sk_libbmp_dfactory() 56 static SkImageDecoder::Format get_format_bmp(SkStreamRewindable* stream) { in get_format_bmp() 58 return SkImageDecoder::kBMP_Format; in get_format_bmp() 60 return SkImageDecoder::kUnknown_Format; in get_format_bmp() 95 SkImageDecoder::Result SkBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 107 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 = NULL; in image_decoder_from_stream() 48 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable* stream) { in GetStreamFormat()
|
D | SkImageDecoder_astc.cpp | 18 class SkASTCImageDecoder : public SkImageDecoder { 30 typedef SkImageDecoder INHERITED; 45 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 | SkDecodingImageGenerator.cpp | 161 SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(fStream)); in onGetPixels() 172 const SkImageDecoder::Result decodeResult = decoder->decode(fStream, &bitmap, info.colorType(), in onGetPixels() 173 SkImageDecoder::kDecodePixels_Mode); in onGetPixels() 175 if (SkImageDecoder::kFailure == decodeResult) { in onGetPixels() 205 if (SkImageDecoder::kPartialSuccess == decodeResult) { in onGetPixels() 217 SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(fStream)); in onGetYUV8Planes() 235 SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(autoStream)); in CreateDecodingImageGenerator() 242 if (!decoder->decode(stream, &bitmap, SkImageDecoder::kDecodeBounds_Mode)) { in CreateDecodingImageGenerator()
|
D | SkImageDecoder_libico.cpp | 14 class SkICOImageDecoder : public SkImageDecoder { 26 typedef SkImageDecoder INHERITED; 75 SkImageDecoder::Result SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) in onDecode() 129 SkAutoTDelete<SkImageDecoder> otherDecoder(SkImageDecoder::Factory(&subStream)); in onDecode() 133 if (otherDecoder->getFormat() == SkImageDecoder::kICO_Format) { in onDecode() 250 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 436 static SkImageDecoder* sk_libico_dfactory(SkStreamRewindable* stream) { in sk_libico_dfactory() 445 static SkImageDecoder::Format get_format_ico(SkStreamRewindable* stream) { in get_format_ico() 447 return SkImageDecoder::kICO_Format; in get_format_ico() 449 return SkImageDecoder::kUnknown_Format; in get_format_ico()
|
D | SkImageDecoder_ktx.cpp | 35 class SkKTXImageDecoder : public SkImageDecoder { 47 typedef SkImageDecoder INHERITED; 50 SkImageDecoder::Result SkKTXImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { in onDecode() 116 if (SkImageDecoder::kDecodeBounds_Mode == mode) { in onDecode() 310 static SkImageDecoder* sk_libktx_dfactory(SkStreamRewindable* stream) { in sk_libktx_dfactory() 317 static SkImageDecoder::Format get_format_ktx(SkStreamRewindable* stream) { in get_format_ktx() 319 return SkImageDecoder::kKTX_Format; in get_format_ktx() 321 return SkImageDecoder::kUnknown_Format; in get_format_ktx()
|
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;
|
/external/skia/bench/ |
D | DecodingBench.cpp | 47 SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(stream)); in DecodingBench() 63 SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(stream)); in onPreDraw() 66 SkImageDecoder::Result result = in onPreDraw() 68 decoder->decode(stream, &bm, fColorType, SkImageDecoder::kDecodeBounds_Mode); in onPreDraw() 69 SkASSERT(SkImageDecoder::kFailure != result); in onPreDraw() 99 SkAutoTDelete<SkImageDecoder> decoder; in onDraw() 105 decoder.reset(SkImageDecoder::Factory(stream)); in onDraw() 108 SkImageDecoder::kDecodePixels_Mode); in onDraw()
|
D | SkipZeroesBench.cpp | 66 fDecoder.reset(SkImageDecoder::Factory(&fStream)); in onPreDraw() 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/tests/ |
D | ImageDecodingTest.cpp | 47 static bool skip_image_format(SkImageDecoder::Format format) { in skip_image_format() 49 case SkImageDecoder::kPNG_Format: in skip_image_format() 50 case SkImageDecoder::kWEBP_Format: in skip_image_format() 53 case SkImageDecoder::kUnknown_Format: in skip_image_format() 56 case SkImageDecoder::kICO_Format: in skip_image_format() 57 case SkImageDecoder::kBMP_Format: in skip_image_format() 60 case SkImageDecoder::kKTX_Format: in skip_image_format() 61 case SkImageDecoder::kASTC_Format: in skip_image_format() 63 case SkImageDecoder::kPKM_Format: in skip_image_format() 64 case SkImageDecoder::kWBMP_Format: in skip_image_format() [all …]
|
D | GifTest.cpp | 58 bool imageDecodeSuccess = SkImageDecoder::DecodeMemory( in test_gif_data_no_colormap() 70 bool imageDecodeSuccess = SkImageDecoder::DecodeMemory( in test_gif_data() 92 bool imageDecodeSuccess = SkImageDecoder::DecodeMemory( in test_interlaced_gif_data() 125 bool imageDecodeSuccess = SkImageDecoder::DecodeMemory( in test_gif_data_short() 212 SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(&fileStream)); in DEF_TEST() 219 const SkImageDecoder::Result result = decoder->decode(&fileStream, &bm, in DEF_TEST() 220 SkImageDecoder::kDecodePixels_Mode); in DEF_TEST() 221 REPORTER_ASSERT(r, result == SkImageDecoder::kSuccess); in DEF_TEST()
|
/external/skia/include/core/ |
D | SkImageDecoder.h | 25 class SkImageDecoder : SkNoncopyable { 27 virtual ~SkImageDecoder(); 265 static SkImageDecoder* Factory(SkStreamRewindable*); 358 void copyFieldsToOther(SkImageDecoder* other); 373 SkImageDecoder(); 426 virtual SkImageDecoder* newDecoder(SkStreamRewindable*) = 0; 435 virtual SkImageDecoder* newDecoder(SkStreamRewindable* stream) { in newDecoder() 436 return SkImageDecoder::Factory(stream); in newDecoder() 443 SkImageDecoder *Create ## codec (); 448 SkImageDecoder *Create ## codec () { \ [all …]
|
/external/skia/tools/ |
D | render_pictures_main.cpp | 65 SkImageDecoder::Format fFormat; 69 { SkImageDecoder::kBMP_Format, ".bmp" }, 70 { SkImageDecoder::kGIF_Format, ".gif" }, 71 { SkImageDecoder::kICO_Format, ".ico" }, 72 { SkImageDecoder::kJPEG_Format, ".jpg" }, 73 { SkImageDecoder::kPNG_Format, ".png" }, 74 { SkImageDecoder::kWBMP_Format, ".wbmp" }, 75 { SkImageDecoder::kWEBP_Format, ".webp" }, 76 { SkImageDecoder::kUnknown_Format, "" }, 82 static const char* get_suffix_from_format(SkImageDecoder::Format format) { in get_suffix_from_format() [all …]
|
/external/skia/src/utils/ios/ |
D | SkImageDecoder_iOS.mm | 12 #include "SkImageDecoder.h" 17 class SkImageDecoder_iOS : public SkImageDecoder { 33 if (SkImageDecoder::kDecodeBounds_Mode == mode) { 57 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable* stream) {
|
/external/skia/experimental/PdfViewer/ |
D | chop_transparency_main.cpp | 28 SkImageDecoder::Format fFormat; 102 SkImageDecoder* codec = SkImageDecoder::Factory(&stream); in decodeFileAndWrite() 107 SkAutoTDelete<SkImageDecoder> ad(codec); in decodeFileAndWrite() 111 if (!codec->decode(&stream, &bitmap, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode)) { in decodeFileAndWrite()
|
/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()
|
/external/skia/samplecode/ |
D | SampleFilter2.cpp | 38 SkImageDecoder::DecodeFile(gNames[i], &fBitmaps[i], kN32_SkColorType, in Filter2View() 39 SkImageDecoder::kDecodePixels_Mode, NULL); in Filter2View() 42 SkImageDecoder::DecodeFile(gNames[i-fBitmapCount/2], &fBitmaps[i], kRGB_565_SkColorType, in Filter2View() 43 SkImageDecoder::kDecodePixels_Mode, NULL); in Filter2View()
|