• Home
  • Raw
  • Download

Lines Matching refs:srcInfo

57     bool setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options);
59 bool writeInfo(const SkImageInfo& srcInfo);
60 void chooseProc(const SkImageInfo& srcInfo);
101 bool SkPngEncoderMgr::setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options) { in setHeader() argument
109 switch (srcInfo.colorType()) { in setHeader()
118 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
125 SkASSERT(srcInfo.isOpaque()); in setHeader()
133 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
134 fPngBytesPerPixel = srcInfo.isOpaque() ? 3 : 4; in setHeader()
142 SkASSERT(srcInfo.isOpaque()); in setHeader()
145 if (kUnpremul_SkAlphaType == srcInfo.alphaType()) { in setHeader()
153 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
154 fPngBytesPerPixel = srcInfo.isOpaque() ? 3 : 4; in setHeader()
162 SkASSERT(srcInfo.isOpaque()); in setHeader()
176 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; in setHeader()
191 png_set_IHDR(fPngPtr, fInfoPtr, srcInfo.width(), srcInfo.height(), in setHeader()
379 bool SkPngEncoderMgr::writeInfo(const SkImageInfo& srcInfo) { in writeInfo() argument
385 if (kRGBA_F16_SkColorType == srcInfo.colorType() && in writeInfo()
386 kOpaque_SkAlphaType == srcInfo.alphaType()) in writeInfo()
396 void SkPngEncoderMgr::chooseProc(const SkImageInfo& srcInfo) { in chooseProc() argument
397 fProc = choose_proc(srcInfo); in chooseProc()