Home
last modified time | relevance | path

Searched refs:encoderMgr (Results 1 – 4 of 4) sorted by relevance

/third_party/flutter/skia/src/images/
DSkJpegEncoder.cpp173 std::unique_ptr<SkJpegEncoderMgr> encoderMgr = SkJpegEncoderMgr::Make(dst); in Make() local
175 skjpeg_error_mgr::AutoPushJmpBuf jmp(encoderMgr->errorMgr()); in Make()
180 if (!encoderMgr->setParams(src.info(), options)) { in Make()
184 jpeg_set_quality(encoderMgr->cinfo(), options.fQuality, TRUE); in Make()
185 jpeg_start_compress(encoderMgr->cinfo(), TRUE); in Make()
199 jpeg_write_marker(encoderMgr->cinfo(), kICCMarker, markerData->bytes(), markerData->size()); in Make()
202 return std::unique_ptr<SkJpegEncoder>(new SkJpegEncoder(std::move(encoderMgr), src)); in Make()
205 SkJpegEncoder::SkJpegEncoder(std::unique_ptr<SkJpegEncoderMgr> encoderMgr, const SkPixmap& src) in SkJpegEncoder() argument
206 : INHERITED(src, encoderMgr->proc() ? encoderMgr->cinfo()->input_components*src.width() : 0) in SkJpegEncoder()
207 , fEncoderMgr(std::move(encoderMgr)) in SkJpegEncoder()
DSkPngEncoder.cpp381 std::unique_ptr<SkPngEncoderMgr> encoderMgr = SkPngEncoderMgr::Make(dst); in Make() local
382 if (!encoderMgr) { in Make()
386 if (!encoderMgr->setHeader(src.info(), options)) { in Make()
390 if (!encoderMgr->setColorSpace(src.info())) { in Make()
394 if (!encoderMgr->writeInfo(src.info())) { in Make()
398 encoderMgr->chooseProc(src.info()); in Make()
400 return std::unique_ptr<SkPngEncoder>(new SkPngEncoder(std::move(encoderMgr), src)); in Make()
403 SkPngEncoder::SkPngEncoder(std::unique_ptr<SkPngEncoderMgr> encoderMgr, const SkPixmap& src) in SkPngEncoder() argument
404 : INHERITED(src, encoderMgr->pngBytesPerPixel() * src.width()) in SkPngEncoder()
405 , fEncoderMgr(std::move(encoderMgr)) in SkPngEncoder()
/third_party/skia/src/images/
DSkJpegEncoder.cpp173 std::unique_ptr<SkJpegEncoderMgr> encoderMgr = SkJpegEncoderMgr::Make(dst); in Make() local
175 skjpeg_error_mgr::AutoPushJmpBuf jmp(encoderMgr->errorMgr()); in Make()
180 if (!encoderMgr->setParams(src.info(), options)) { in Make()
184 jpeg_set_quality(encoderMgr->cinfo(), options.fQuality, TRUE); in Make()
185 jpeg_start_compress(encoderMgr->cinfo(), TRUE); in Make()
199 jpeg_write_marker(encoderMgr->cinfo(), kICCMarker, markerData->bytes(), markerData->size()); in Make()
202 return std::unique_ptr<SkJpegEncoder>(new SkJpegEncoder(std::move(encoderMgr), src)); in Make()
205 SkJpegEncoder::SkJpegEncoder(std::unique_ptr<SkJpegEncoderMgr> encoderMgr, const SkPixmap& src) in SkJpegEncoder() argument
206 : INHERITED(src, encoderMgr->proc() ? encoderMgr->cinfo()->input_components*src.width() : 0) in SkJpegEncoder()
207 , fEncoderMgr(std::move(encoderMgr)) in SkJpegEncoder()
DSkPngEncoder.cpp406 std::unique_ptr<SkPngEncoderMgr> encoderMgr = SkPngEncoderMgr::Make(dst); in Make() local
407 if (!encoderMgr) { in Make()
411 if (!encoderMgr->setHeader(src.info(), options)) { in Make()
415 if (!encoderMgr->setColorSpace(src.info())) { in Make()
419 if (!encoderMgr->writeInfo(src.info())) { in Make()
423 encoderMgr->chooseProc(src.info()); in Make()
425 return std::unique_ptr<SkPngEncoder>(new SkPngEncoder(std::move(encoderMgr), src)); in Make()
428 SkPngEncoder::SkPngEncoder(std::unique_ptr<SkPngEncoderMgr> encoderMgr, const SkPixmap& src) in SkPngEncoder() argument
429 : INHERITED(src, encoderMgr->pngBytesPerPixel() * src.width()) in SkPngEncoder()
430 , fEncoderMgr(std::move(encoderMgr)) in SkPngEncoder()