/external/skqp/include/encode/ |
D | SkPngEncoder.h | 17 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/ |
D | SkPngEncoder.h | 17 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/ |
D | SkPngEncoder.cpp | 23 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 …]
|
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() 46 SkPngEncoder::Options opts; in SkEncodeImage() 47 return SkPngEncoder::Encode(dst, src, opts); in SkEncodeImage()
|
/external/skia/src/images/ |
D | SkPngEncoder.cpp | 24 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 …]
|
D | SkImageEncoder.cpp | 22 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/ |
D | EncodeTest.cpp | 31 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()
|
D | TestUtils.cpp | 157 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/ |
D | EncodeTest.cpp | 39 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()
|
D | TestUtils.cpp | 111 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/ |
D | EncodeBench.cpp | 77 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/ |
D | EncodeBench.cpp | 77 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/ |
D | SvgTool.cpp | 73 SkPngEncoder::Options png_options; in main() 75 if (!SkPngEncoder::Encode(&out, pixmap, png_options)) { in main()
|
/external/skia/gm/ |
D | encode_srgb.cpp | 74 SkAssertResult(SkPngEncoder::Encode(&buf, src, SkPngEncoder::Options())); in encode_data()
|
D | encode_platform.cpp | 78 bool success = SkPngEncoder::Encode(&buf, src, SkPngEncoder::Options()); in encode_data()
|
/external/skqp/gm/ |
D | encode-srgb.cpp | 64 SkAssertResult(SkPngEncoder::Encode(&buf, src, SkPngEncoder::Options())); in encode_data()
|
D | encode-platform.cpp | 53 bool success = SkPngEncoder::Encode(&buf, src, SkPngEncoder::Options()); in encode_data()
|
/external/skqp/fuzz/ |
D | FuzzEncoders.cpp | 42 auto opts = SkPngEncoder::Options{}; in DEF_FUZZ() 46 SkPngEncoder::Encode(&dest, bm.pixmap(), opts); in DEF_FUZZ()
|
/external/skia/fuzz/ |
D | FuzzEncoders.cpp | 42 auto opts = SkPngEncoder::Options{}; in DEF_FUZZ() 46 SkPngEncoder::Encode(&dest, bm.pixmap(), opts); in DEF_FUZZ()
|
/external/skia/tools/skqp/ |
D | make_skqp_model.cpp | 63 SkPngEncoder::Options encOpts; in encode_png() 66 return o.isValid() && SkPngEncoder::Encode(&o, pixmap, encOpts); in encode_png()
|
/external/skia/modules/skottie/src/ |
D | SkottieTool.cpp | 105 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/ |
D | skqp.cpp | 220 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/ |
D | skqp.cpp | 208 SkPngEncoder::Options options; in encode_png() 209 bool success = wStream.isValid() && SkPngEncoder::Encode(&wStream, src.pixmap(), options); in encode_png()
|
/external/skqp/dm/ |
D | DM.cpp | 1057 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/ |
D | SkMipmap.cpp | 831 if (SkPngEncoder::Encode(&stream, pm, SkPngEncoder::Options())) { in encode_to_data()
|