Lines Matching refs:fPng_ptr

81         : fPng_ptr(png_ptr)
89 // fInfo_ptr will never be non-nullptr unless fPng_ptr is.
90 if (fPng_ptr) {
92 png_destroy_read_struct(&fPng_ptr, info_pp, nullptr);
116 png_structp fPng_ptr;
125 fPng_ptr = nullptr;
149 if (setjmp(PNG_JMPBUF(fPng_ptr))) {
153 png_set_progressive_read_fn(fPng_ptr, nullptr, nullptr, nullptr, nullptr);
167 png_process_data(fPng_ptr, fInfo_ptr, (png_bytep) buffer, 8);
185 png_process_data(fPng_ptr, fInfo_ptr, chunk, 8);
187 if (!process_data(fPng_ptr, fInfo_ptr, fStream, buffer, kBufferSize, length + 4)) {
196 switch (setjmp(PNG_JMPBUF(fPng_ptr))) {
231 png_process_data(fPng_ptr, fInfo_ptr, chunk, 8);
241 png_process_data(fPng_ptr, fInfo_ptr, idat, 8);
246 if (!process_data(fPng_ptr, fInfo_ptr, this->stream(), buffer, kBufferSize, length + 4)
266 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) {
277 if (png_get_tRNS(fPng_ptr, fInfo_ptr, &alphas, &numColorsWithAlpha, nullptr)) {
845 png_get_IHDR(fPng_ptr, fInfo_ptr, &origWidth, &origHeight, &bitDepth,
852 png_set_strip_16(fPng_ptr);
867 png_set_packing(fPng_ptr);
872 alpha = png_get_valid(fPng_ptr, fInfo_ptr, PNG_INFO_tRNS) ?
876 if (png_get_valid(fPng_ptr, fInfo_ptr, PNG_INFO_tRNS)) {
878 png_set_tRNS_to_alpha(fPng_ptr);
891 png_set_expand_gray_1_2_4_to_8(fPng_ptr);
894 if (png_get_valid(fPng_ptr, fInfo_ptr, PNG_INFO_tRNS)) {
895 png_set_tRNS_to_alpha(fPng_ptr);
918 const int numberPasses = png_set_interlace_handling(fPng_ptr);
922 auto profile = read_color_profile(fPng_ptr, fInfo_ptr);
943 if (png_get_sBIT(fPng_ptr, fInfo_ptr, &sigBits)) {
952 if (png_get_sBIT(fPng_ptr, fInfo_ptr, &sigBits)) {
966 if (png_get_sBIT(fPng_ptr, fInfo_ptr, &sigBits)) {
978 std::unique_ptr<SkStream>(fStream), fChunkReader, fPng_ptr, fInfo_ptr, bitDepth);
981 std::unique_ptr<SkStream>(fStream), fChunkReader, fPng_ptr, fInfo_ptr, bitDepth,
996 , fPng_ptr(png_ptr)
1009 if (fPng_ptr) {
1010 // We will never have a nullptr fInfo_ptr with a non-nullptr fPng_ptr
1012 png_destroy_read_struct((png_struct**)&fPng_ptr, (png_info**)&fInfo_ptr, nullptr);
1013 fPng_ptr = nullptr;
1023 if (setjmp(PNG_JMPBUF((png_struct*)fPng_ptr))) {
1027 png_read_update_info(fPng_ptr, fInfo_ptr);
1138 // This sets fPng_ptr and fInfo_ptr to nullptr. If read_header
1140 // remain nullptr. Any future accesses to fPng_ptr and fInfo_ptr will
1152 fPng_ptr = png_ptr;