Lines Matching refs:srcInfo
56 bool setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options);
58 bool writeInfo(const SkImageInfo& srcInfo);
59 void chooseProc(const SkImageInfo& srcInfo);
100 bool SkPngEncoderMgr::setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options) { in setHeader() argument
108 switch (srcInfo.colorType()) { in setHeader()
117 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
124 SkASSERT(srcInfo.isOpaque()); in setHeader()
132 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
133 fPngBytesPerPixel = srcInfo.isOpaque() ? 3 : 4; in setHeader()
141 SkASSERT(srcInfo.isOpaque()); in setHeader()
144 if (kUnpremul_SkAlphaType == srcInfo.alphaType()) { in setHeader()
152 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
153 fPngBytesPerPixel = srcInfo.isOpaque() ? 3 : 4; in setHeader()
161 SkASSERT(srcInfo.isOpaque()); in setHeader()
175 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
190 png_set_IHDR(fPngPtr, fInfoPtr, srcInfo.width(), srcInfo.height(), in setHeader()
354 bool SkPngEncoderMgr::writeInfo(const SkImageInfo& srcInfo) { in writeInfo() argument
360 if (kRGBA_F16_SkColorType == srcInfo.colorType() && in writeInfo()
361 kOpaque_SkAlphaType == srcInfo.alphaType()) in writeInfo()
371 void SkPngEncoderMgr::chooseProc(const SkImageInfo& srcInfo) { in chooseProc() argument
372 fProc = choose_proc(srcInfo); in chooseProc()