Home | History | Annotate | Download | only in lodepng

Lines Matching refs:png

32 LodePNGInfo getPNGHeaderInfo(const std::vector<unsigned char>& png)
36 lodepng_inspect(&w, &h, &state, &png[0], png.size());
41 const std::vector<unsigned char>& png)
43 // Listing chunks is based on the original file, not the decoded png info.
45 end = &png.back() + 1;
46 begin = chunk = &png.front() + 8;
64 const std::vector<unsigned char>& png)
67 end = &png.back() + 1;
68 begin = chunk = &png.front() + 8;
105 unsigned insertChunks(std::vector<unsigned char>& png,
109 end = &png.back() + 1;
110 begin = chunk = &png.front() + 8;
143 result.insert(result.end(), png.begin(), png.begin() + l0);
145 result.insert(result.end(), png.begin() + l0, png.begin() + l1);
147 result.insert(result.end(), png.begin() + l1, png.begin() + l2);
149 result.insert(result.end(), png.begin() + l2, png.end());
151 png = result;
156 const std::vector<unsigned char>& png)
162 error = lodepng_inspect(&w, &h, &state, &png[0], png.size());
168 end = &png.back() + 1;
169 begin = chunk = &png.front() + 8;
177 if(std::string(type).size() != 4) return 1; //Probably not a PNG file
237 unsigned getFilterTypes(std::vector<unsigned char>& filterTypes, const std::vector<unsigned char>& png)
240 unsigned error = getFilterTypesInterlaced(passes, png);
251 lodepng_inspect(&w, &h, &state, &png[0], png.size());
556 //error: only compression method 8: inflate with sliding window of 32k is supported by the PNG spec
558 //error: the PNG spec says about the zlib stream: "The additional flags shall not specify a preset dictionary."
565 struct ExtractPNG //PNG decoding and information extraction
618 || in[4] != 13 || in[5] != 10 || in[6] != 26 || in[7] != 10) { error = 28; return; } //no PNG signature