Searched refs:SkPngEncoder (Results 1 – 13 of 13) sorted by relevance
/external/skia/src/images/ |
D | SkPngEncoder.cpp | 21 static_assert(PNG_FILTER_NONE == (int)SkPngEncoder::FilterFlag::kNone, "Skia libpng filter err."); 22 static_assert(PNG_FILTER_SUB == (int)SkPngEncoder::FilterFlag::kSub, "Skia libpng filter err."); 23 static_assert(PNG_FILTER_UP == (int)SkPngEncoder::FilterFlag::kUp, "Skia libpng filter err."); 24 static_assert(PNG_FILTER_AVG == (int)SkPngEncoder::FilterFlag::kAvg, "Skia libpng filter err."); 25 static_assert(PNG_FILTER_PAETH == (int)SkPngEncoder::FilterFlag::kPaeth, "Skia libpng filter err."); 26 static_assert(PNG_ALL_FILTERS == (int)SkPngEncoder::FilterFlag::kAll, "Skia libpng filter err."); 54 bool setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options); 98 bool SkPngEncoderMgr::setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options) { in setHeader() 162 int filters = (int)options.fFilterFlags & (int)SkPngEncoder::FilterFlag::kAll; in setHeader() 316 std::unique_ptr<SkEncoder> SkPngEncoder::Make(SkWStream* dst, const SkPixmap& src, in Make() [all …]
|
D | SkImageEncoder.cpp | 21 bool SkPngEncoder::Encode(SkWStream*, const SkPixmap&, const Options&) { return false; } in Encode() 22 std::unique_ptr<SkEncoder> SkPngEncoder::Make(SkWStream*, const SkPixmap&, const Options&) { in Make() 47 SkPngEncoder::Options opts; in SkEncodeImage() 49 return SkPngEncoder::Encode(dst, src, opts); in SkEncodeImage()
|
/external/skia/include/encode/ |
D | SkPngEncoder.h | 17 class SK_API SkPngEncoder : public SkEncoder { 90 ~SkPngEncoder() override; 95 SkPngEncoder(std::unique_ptr<SkPngEncoderMgr>, const SkPixmap& src); 101 static inline SkPngEncoder::FilterFlag operator|(SkPngEncoder::FilterFlag x, 102 SkPngEncoder::FilterFlag y) { 103 return (SkPngEncoder::FilterFlag)((int)x | (int)y);
|
/external/skia/tests/ |
D | EncodeTest.cpp | 30 return SkPngEncoder::Encode(dst, src, SkPngEncoder::Options()); in encode() 42 return SkPngEncoder::Make(dst, src, SkPngEncoder::Options()); in make() 180 static void testPngComments(const SkPixmap& src, SkPngEncoder::Options& options, in testPngComments() 208 bool success = SkPngEncoder::Encode(&dst, src, options); in testPngComments() 260 SkPngEncoder::Options options; in DEF_TEST() 261 success = SkPngEncoder::Encode(&dst0, src, options); in DEF_TEST() 264 options.fFilterFlags = SkPngEncoder::FilterFlag::kUp; in DEF_TEST() 265 success = SkPngEncoder::Encode(&dst1, src, options); in DEF_TEST() 269 success = SkPngEncoder::Encode(&dst2, src, options); in DEF_TEST()
|
D | CodecTest.cpp | 1457 SkPngEncoder::Options pngOptions; in encode_format() 1463 SkPngEncoder::Encode(stream, pixmap, pngOptions); in encode_format()
|
/external/skia/tools/ |
D | create_flutter_test_images.cpp | 65 SkPngEncoder::Options opts; in main() 67 SkAssertResult(SkPngEncoder::Encode(&dst0, src, opts)); in main() 73 SkAssertResult(SkPngEncoder::Encode(&dst1, src, opts)); in main() 79 SkAssertResult(SkPngEncoder::Encode(&dst2, src, opts)); in main()
|
D | ok_vias.cpp | 92 SkPngEncoder::Options options; in draw() 93 options.fFilterFlags = SkPngEncoder::FilterFlag::kNone; in draw() 97 return SkPngEncoder::Encode(&dst, pm, options) ? Status::OK in draw()
|
/external/skia/bench/ |
D | EncoderBench.cpp | 73 SkPngEncoder::FilterFlag filters, in encode_png() 75 SkPngEncoder::Options opts; in encode_png() 79 return SkPngEncoder::Encode(dst, src, opts); in encode_png() 83 return encode_png(d, s, SkPngEncoder::FilterFlag::FLAG, ZLIBLEVEL); }
|
/external/skia/gm/ |
D | encode-platform.cpp | 75 SkPngEncoder::Options options; in encode_data() 77 bool success = SkPngEncoder::Encode(&buf, src, options); in encode_data()
|
D | encode-srgb.cpp | 74 SkPngEncoder::Options pngOptions; in encode_data() 83 SkAssertResult(SkPngEncoder::Encode(&buf, src, pngOptions)); in encode_data()
|
/external/skia/dm/ |
D | DM.cpp | 1003 SkPngEncoder::Options options; in dump_png() 1005 options.fFilterFlags = SkPngEncoder::FilterFlag::kNone; in dump_png() 1009 return SkPngEncoder::Encode(&dst, pm, options); in dump_png()
|
/external/skia/ |
D | BUILD.gn | 602 "src/images/SkPngEncoder.cpp",
|
D | Android.bp | 599 "src/images/SkPngEncoder.cpp",
|