Home
last modified time | relevance | path

Searched refs:SkPngEncoder (Results 1 – 13 of 13) sorted by relevance

/external/skia/src/images/
DSkPngEncoder.cpp21 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 …]
DSkImageEncoder.cpp21 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/
DSkPngEncoder.h17 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/
DEncodeTest.cpp30 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()
DCodecTest.cpp1457 SkPngEncoder::Options pngOptions; in encode_format()
1463 SkPngEncoder::Encode(stream, pixmap, pngOptions); in encode_format()
/external/skia/tools/
Dcreate_flutter_test_images.cpp65 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()
Dok_vias.cpp92 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/
DEncoderBench.cpp73 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/
Dencode-platform.cpp75 SkPngEncoder::Options options; in encode_data()
77 bool success = SkPngEncoder::Encode(&buf, src, options); in encode_data()
Dencode-srgb.cpp74 SkPngEncoder::Options pngOptions; in encode_data()
83 SkAssertResult(SkPngEncoder::Encode(&buf, src, pngOptions)); in encode_data()
/external/skia/dm/
DDM.cpp1003 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/
DBUILD.gn602 "src/images/SkPngEncoder.cpp",
DAndroid.bp599 "src/images/SkPngEncoder.cpp",