• Home
  • Raw
  • Download

Lines Matching refs:fPng_ptr

82         : fPng_ptr(png_ptr)  in AutoCleanPng()
91 if (fPng_ptr) { in ~AutoCleanPng()
93 png_destroy_read_struct(&fPng_ptr, info_pp, nullptr); in ~AutoCleanPng()
117 png_structp fPng_ptr; member in AutoCleanPng
126 fPng_ptr = nullptr; in releasePngPtrs()
151 if (setjmp(PNG_JMPBUF(fPng_ptr))) { in decodeBounds()
155 png_set_progressive_read_fn(fPng_ptr, nullptr, nullptr, nullptr, nullptr); in decodeBounds()
169 png_process_data(fPng_ptr, fInfo_ptr, (png_bytep) buffer, 8); in decodeBounds()
187 png_process_data(fPng_ptr, fInfo_ptr, chunk, 8); in decodeBounds()
189 if (!process_data(fPng_ptr, fInfo_ptr, fStream, buffer, kBufferSize, length + 4)) { in decodeBounds()
198 switch (setjmp(PNG_JMPBUF(fPng_ptr))) { in processData()
228 png_process_data(fPng_ptr, fInfo_ptr, chunk, 8); in processData()
238 png_process_data(fPng_ptr, fInfo_ptr, idat, 8); in processData()
243 if (!process_data(fPng_ptr, fInfo_ptr, this->stream(), buffer, kBufferSize, length + 4) in processData()
263 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) { in createColorTable()
274 if (png_get_tRNS(fPng_ptr, fInfo_ptr, &alphas, &numColorsWithAlpha, nullptr)) { in createColorTable()
842 png_get_IHDR(fPng_ptr, fInfo_ptr, &origWidth, &origHeight, &bitDepth, in infoCallback()
849 png_set_strip_16(fPng_ptr); in infoCallback()
864 png_set_packing(fPng_ptr); in infoCallback()
869 alpha = png_get_valid(fPng_ptr, fInfo_ptr, PNG_INFO_tRNS) ? in infoCallback()
873 if (png_get_valid(fPng_ptr, fInfo_ptr, PNG_INFO_tRNS)) { in infoCallback()
875 png_set_tRNS_to_alpha(fPng_ptr); in infoCallback()
888 png_set_expand_gray_1_2_4_to_8(fPng_ptr); in infoCallback()
891 if (png_get_valid(fPng_ptr, fInfo_ptr, PNG_INFO_tRNS)) { in infoCallback()
892 png_set_tRNS_to_alpha(fPng_ptr); in infoCallback()
915 const int numberPasses = png_set_interlace_handling(fPng_ptr); in infoCallback()
919 auto profile = read_color_profile(fPng_ptr, fInfo_ptr); in infoCallback()
939 if (png_get_sBIT(fPng_ptr, fInfo_ptr, &sigBits)) { in infoCallback()
946 if (png_get_sBIT(fPng_ptr, fInfo_ptr, &sigBits)) { in infoCallback()
958 std::unique_ptr<SkStream>(fStream), fChunkReader, fPng_ptr, fInfo_ptr, bitDepth); in infoCallback()
961 std::unique_ptr<SkStream>(fStream), fChunkReader, fPng_ptr, fInfo_ptr, bitDepth, in infoCallback()
976 , fPng_ptr(png_ptr) in SkPngCodec()
989 if (fPng_ptr) { in destroyReadStruct()
992 png_destroy_read_struct((png_struct**)&fPng_ptr, (png_info**)&fInfo_ptr, nullptr); in destroyReadStruct()
993 fPng_ptr = nullptr; in destroyReadStruct()
1003 if (setjmp(PNG_JMPBUF((png_struct*)fPng_ptr))) { in initializeXforms()
1007 png_read_update_info(fPng_ptr, fInfo_ptr); in initializeXforms()
1133 fPng_ptr = png_ptr; in onRewind()