Home
last modified time | relevance | path

Searched refs:pngPtr (Results 1 – 2 of 2) sorted by relevance

/third_party/vk-gl-cts/framework/common/
DtcuImageIO.cpp160 png_structp pngPtr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); in savePNG() local
162 if (!pngPtr) in savePNG()
165 TCU_CHECK(pngPtr); in savePNG()
168 png_infop infoPtr = png_create_info_struct(pngPtr); in savePNG()
171 png_destroy_write_struct(&pngPtr, NULL); in savePNG()
175 if (setjmp(png_jmpbuf(pngPtr))) in savePNG()
177 png_destroy_write_struct(&pngPtr, &infoPtr); in savePNG()
185 png_init_io(pngPtr, fp); in savePNG()
188 png_set_IHDR(pngPtr, infoPtr, src.getWidth(), src.getHeight(), 8, in savePNG()
191 png_write_info(pngPtr, infoPtr); in savePNG()
[all …]
/third_party/skia/src/images/
DSkPngEncoder.cpp62 png_structp pngPtr() { return fPngPtr; } in pngPtr() function in SkPngEncoderMgr
73 SkPngEncoderMgr(png_structp pngPtr, png_infop infoPtr) in SkPngEncoderMgr() argument
74 : fPngPtr(pngPtr) in SkPngEncoderMgr()
85 png_structp pngPtr = in Make() local
87 if (!pngPtr) { in Make()
91 png_infop infoPtr = png_create_info_struct(pngPtr); in Make()
93 png_destroy_write_struct(&pngPtr, nullptr); in Make()
97 png_set_write_fn(pngPtr, (void*)stream, sk_write_fn, nullptr); in Make()
98 return std::unique_ptr<SkPngEncoderMgr>(new SkPngEncoderMgr(pngPtr, infoPtr)); in Make()
436 if (setjmp(png_jmpbuf(fEncoderMgr->pngPtr()))) { in onEncodeRows()
[all …]