Searched refs:encoderMgr (Results 1 – 4 of 4) sorted by relevance
/external/skia/src/images/ |
D | SkJpegEncoder.cpp | 172 std::unique_ptr<SkJpegEncoderMgr> encoderMgr = SkJpegEncoderMgr::Make(dst); in Make() local 174 skjpeg_error_mgr::AutoPushJmpBuf jmp(encoderMgr->errorMgr()); in Make() 179 if (!encoderMgr->setParams(src.info(), options)) { in Make() 183 jpeg_set_quality(encoderMgr->cinfo(), options.fQuality, TRUE); in Make() 184 jpeg_start_compress(encoderMgr->cinfo(), TRUE); in Make() 198 jpeg_write_marker(encoderMgr->cinfo(), kICCMarker, markerData->bytes(), markerData->size()); in Make() 201 return std::unique_ptr<SkJpegEncoder>(new SkJpegEncoder(std::move(encoderMgr), src)); in Make() 204 SkJpegEncoder::SkJpegEncoder(std::unique_ptr<SkJpegEncoderMgr> encoderMgr, const SkPixmap& src) in SkJpegEncoder() argument 205 : INHERITED(src, encoderMgr->proc() ? encoderMgr->cinfo()->input_components*src.width() : 0) in SkJpegEncoder() 206 , fEncoderMgr(std::move(encoderMgr)) in SkJpegEncoder()
|
D | SkPngEncoder.cpp | 381 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()
|
/external/skqp/src/images/ |
D | SkJpegEncoder.cpp | 172 std::unique_ptr<SkJpegEncoderMgr> encoderMgr = SkJpegEncoderMgr::Make(dst); in Make() local 174 skjpeg_error_mgr::AutoPushJmpBuf jmp(encoderMgr->errorMgr()); in Make() 179 if (!encoderMgr->setParams(src.info(), options)) { in Make() 183 jpeg_set_quality(encoderMgr->cinfo(), options.fQuality, TRUE); in Make() 184 jpeg_start_compress(encoderMgr->cinfo(), TRUE); in Make() 198 jpeg_write_marker(encoderMgr->cinfo(), kICCMarker, markerData->bytes(), markerData->size()); in Make() 201 return std::unique_ptr<SkJpegEncoder>(new SkJpegEncoder(std::move(encoderMgr), src)); in Make() 204 SkJpegEncoder::SkJpegEncoder(std::unique_ptr<SkJpegEncoderMgr> encoderMgr, const SkPixmap& src) in SkJpegEncoder() argument 205 : INHERITED(src, encoderMgr->proc() ? encoderMgr->cinfo()->input_components*src.width() : 0) in SkJpegEncoder() 206 , fEncoderMgr(std::move(encoderMgr)) in SkJpegEncoder()
|
D | SkPngEncoder.cpp | 376 std::unique_ptr<SkPngEncoderMgr> encoderMgr = SkPngEncoderMgr::Make(dst); in Make() local 377 if (!encoderMgr) { in Make() 381 if (!encoderMgr->setHeader(src.info(), options)) { in Make() 385 if (!encoderMgr->setColorSpace(src.info())) { in Make() 389 if (!encoderMgr->writeInfo(src.info())) { in Make() 393 encoderMgr->chooseProc(src.info()); in Make() 395 return std::unique_ptr<SkPngEncoder>(new SkPngEncoder(std::move(encoderMgr), src)); in Make() 398 SkPngEncoder::SkPngEncoder(std::unique_ptr<SkPngEncoderMgr> encoderMgr, const SkPixmap& src) in SkPngEncoder() argument 399 : INHERITED(src, encoderMgr->pngBytesPerPixel() * src.width()) in SkPngEncoder() 400 , fEncoderMgr(std::move(encoderMgr)) in SkPngEncoder()
|