Home
last modified time | relevance | path

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

12

/external/skqp/include/encode/
DSkPngEncoder.h17 class SK_API SkPngEncoder : public SkEncoder {
83 ~SkPngEncoder() override;
88 SkPngEncoder(std::unique_ptr<SkPngEncoderMgr>, const SkPixmap& src);
94 static inline SkPngEncoder::FilterFlag operator|(SkPngEncoder::FilterFlag x,
95 SkPngEncoder::FilterFlag y) {
96 return (SkPngEncoder::FilterFlag)((int)x | (int)y);
/external/skia/include/encode/
DSkPngEncoder.h17 class SK_API SkPngEncoder : public SkEncoder {
83 ~SkPngEncoder() override;
88 SkPngEncoder(std::unique_ptr<SkPngEncoderMgr>, const SkPixmap& src);
94 static inline SkPngEncoder::FilterFlag operator|(SkPngEncoder::FilterFlag x,
95 SkPngEncoder::FilterFlag y) {
96 return (SkPngEncoder::FilterFlag)((int)x | (int)y);
/external/skqp/src/images/
DSkPngEncoder.cpp23 static_assert(PNG_FILTER_NONE == (int)SkPngEncoder::FilterFlag::kNone, "Skia libpng filter err.");
24 static_assert(PNG_FILTER_SUB == (int)SkPngEncoder::FilterFlag::kSub, "Skia libpng filter err.");
25 static_assert(PNG_FILTER_UP == (int)SkPngEncoder::FilterFlag::kUp, "Skia libpng filter err.");
26 static_assert(PNG_FILTER_AVG == (int)SkPngEncoder::FilterFlag::kAvg, "Skia libpng filter err.");
27 static_assert(PNG_FILTER_PAETH == (int)SkPngEncoder::FilterFlag::kPaeth, "Skia libpng filter err.");
28 static_assert(PNG_ALL_FILTERS == (int)SkPngEncoder::FilterFlag::kAll, "Skia libpng filter err.");
56 bool setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options);
100 bool SkPngEncoderMgr::setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options) { in setHeader()
195 int filters = (int)options.fFilterFlags & (int)SkPngEncoder::FilterFlag::kAll; in setHeader()
370 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()
46 SkPngEncoder::Options opts; in SkEncodeImage()
47 return SkPngEncoder::Encode(dst, src, opts); in SkEncodeImage()
/external/skia/src/images/
DSkPngEncoder.cpp24 static_assert(PNG_FILTER_NONE == (int)SkPngEncoder::FilterFlag::kNone, "Skia libpng filter err.");
25 static_assert(PNG_FILTER_SUB == (int)SkPngEncoder::FilterFlag::kSub, "Skia libpng filter err.");
26 static_assert(PNG_FILTER_UP == (int)SkPngEncoder::FilterFlag::kUp, "Skia libpng filter err.");
27 static_assert(PNG_FILTER_AVG == (int)SkPngEncoder::FilterFlag::kAvg, "Skia libpng filter err.");
28 static_assert(PNG_FILTER_PAETH == (int)SkPngEncoder::FilterFlag::kPaeth, "Skia libpng filter err.");
29 static_assert(PNG_ALL_FILTERS == (int)SkPngEncoder::FilterFlag::kAll, "Skia libpng filter err.");
57 bool setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options);
101 bool SkPngEncoderMgr::setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options) { in setHeader()
197 int filters = (int)options.fFilterFlags & (int)SkPngEncoder::FilterFlag::kAll; in setHeader()
395 std::unique_ptr<SkEncoder> SkPngEncoder::Make(SkWStream* dst, const SkPixmap& src, in Make()
[all …]
DSkImageEncoder.cpp22 bool SkPngEncoder::Encode(SkWStream*, const SkPixmap&, const Options&) { return false; } in Encode()
23 std::unique_ptr<SkEncoder> SkPngEncoder::Make(SkWStream*, const SkPixmap&, const Options&) { in Make()
54 SkPngEncoder::Options opts; in SkEncodeImage()
55 return SkPngEncoder::Encode(dst, src, opts); in SkEncodeImage()
/external/skqp/tests/
DEncodeTest.cpp31 return SkPngEncoder::Encode(dst, src, SkPngEncoder::Options()); in encode()
43 return SkPngEncoder::Make(dst, src, SkPngEncoder::Options()); in make()
181 static void testPngComments(const SkPixmap& src, SkPngEncoder::Options& options, in testPngComments()
209 bool success = SkPngEncoder::Encode(&dst, src, options); in testPngComments()
261 SkPngEncoder::Options options; in DEF_TEST()
262 success = SkPngEncoder::Encode(&dst0, src, options); in DEF_TEST()
265 options.fFilterFlags = SkPngEncoder::FilterFlag::kUp; in DEF_TEST()
266 success = SkPngEncoder::Encode(&dst1, src, options); in DEF_TEST()
270 success = SkPngEncoder::Encode(&dst2, src, options); in DEF_TEST()
DTestUtils.cpp157 SkPngEncoder::Options options; in bitmap_to_base64_data_uri()
158 options.fFilterFlags = SkPngEncoder::FilterFlag::kAll; in bitmap_to_base64_data_uri()
162 if (!SkPngEncoder::Encode(&wStream, pm, options)) { in bitmap_to_base64_data_uri()
/external/skia/tests/
DEncodeTest.cpp39 return SkPngEncoder::Encode(dst, src, SkPngEncoder::Options()); in encode()
51 return SkPngEncoder::Make(dst, src, SkPngEncoder::Options()); in make()
227 static void testPngComments(const SkPixmap& src, SkPngEncoder::Options& options, in testPngComments()
255 bool success = SkPngEncoder::Encode(&dst, src, options); in testPngComments()
307 SkPngEncoder::Options options; in DEF_TEST()
308 success = SkPngEncoder::Encode(&dst0, src, options); in DEF_TEST()
311 options.fFilterFlags = SkPngEncoder::FilterFlag::kUp; in DEF_TEST()
312 success = SkPngEncoder::Encode(&dst1, src, options); in DEF_TEST()
316 success = SkPngEncoder::Encode(&dst2, src, options); in DEF_TEST()
DTestUtils.cpp111 SkPngEncoder::Options options; in BipmapToBase64DataURI()
112 options.fFilterFlags = SkPngEncoder::FilterFlag::kAll; in BipmapToBase64DataURI()
116 if (!SkPngEncoder::Encode(&wStream, pm, options)) { in BipmapToBase64DataURI()
/external/skqp/bench/
DEncodeBench.cpp77 SkPngEncoder::FilterFlag filters, in encode_png()
79 SkPngEncoder::Options opts; in encode_png()
82 return SkPngEncoder::Encode(dst, src, opts); in encode_png()
86 return encode_png(d, s, SkPngEncoder::FilterFlag::FLAG, ZLIBLEVEL); }
/external/skia/bench/
DEncodeBench.cpp77 SkPngEncoder::FilterFlag filters, in encode_png()
79 SkPngEncoder::Options opts; in encode_png()
82 return SkPngEncoder::Encode(dst, src, opts); in encode_png()
86 return encode_png(d, s, SkPngEncoder::FilterFlag::FLAG, ZLIBLEVEL); }
/external/skia/modules/svg/utils/
DSvgTool.cpp73 SkPngEncoder::Options png_options; in main()
75 if (!SkPngEncoder::Encode(&out, pixmap, png_options)) { in main()
/external/skia/gm/
Dencode_srgb.cpp74 SkAssertResult(SkPngEncoder::Encode(&buf, src, SkPngEncoder::Options())); in encode_data()
Dencode_platform.cpp78 bool success = SkPngEncoder::Encode(&buf, src, SkPngEncoder::Options()); in encode_data()
/external/skqp/gm/
Dencode-srgb.cpp64 SkAssertResult(SkPngEncoder::Encode(&buf, src, SkPngEncoder::Options())); in encode_data()
Dencode-platform.cpp53 bool success = SkPngEncoder::Encode(&buf, src, SkPngEncoder::Options()); in encode_data()
/external/skqp/fuzz/
DFuzzEncoders.cpp42 auto opts = SkPngEncoder::Options{}; in DEF_FUZZ()
46 SkPngEncoder::Encode(&dest, bm.pixmap(), opts); in DEF_FUZZ()
/external/skia/fuzz/
DFuzzEncoders.cpp42 auto opts = SkPngEncoder::Options{}; in DEF_FUZZ()
46 SkPngEncoder::Encode(&dest, bm.pixmap(), opts); in DEF_FUZZ()
/external/skia/tools/skqp/
Dmake_skqp_model.cpp63 SkPngEncoder::Options encOpts; in encode_png()
66 return o.isValid() && SkPngEncoder::Encode(&o, pixmap, encOpts); in encode_png()
/external/skia/modules/skottie/src/
DSkottieTool.cpp105 SkPngEncoder::Options options; in endFrame()
107 options.fFilterFlags = SkPngEncoder::FilterFlag::kNone; in endFrame()
112 && SkPngEncoder::Encode(stream.get(), pixmap, options); in endFrame()
/external/skia/tools/skqp/src/
Dskqp.cpp220 SkPngEncoder::Options options; in encode_png()
221 bool success = wStream.isValid() && SkPngEncoder::Encode(&wStream, src.pixmap(), options); in encode_png()
/external/skqp/tools/skqp/src/
Dskqp.cpp208 SkPngEncoder::Options options; in encode_png()
209 bool success = wStream.isValid() && SkPngEncoder::Encode(&wStream, src.pixmap(), options); in encode_png()
/external/skqp/dm/
DDM.cpp1057 SkPngEncoder::Options options; in dump_png()
1059 options.fFilterFlags = SkPngEncoder::FilterFlag::kNone; in dump_png()
1061 return SkPngEncoder::Encode(&dst, pm, options); in dump_png()
/external/skia/src/core/
DSkMipmap.cpp831 if (SkPngEncoder::Encode(&stream, pm, SkPngEncoder::Options())) { in encode_to_data()

12