summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
84bebbd)
Change-Id: I0ab6cb454021576e1f1308dad5dc67b08a49ecad
+ if (setjmp(png_jmpbuf(pPngStruct))) {
+ /* if png has problem of writing the file, we get here */
+ TBM_ERR("fail to write png file.\n");
+ png_destroy_write_struct(&pPngStruct, &pPngInfo);
+ fclose(fp);
+ return;
+ }
+
png_init_io(pPngStruct, fp);
if (format == TBM_FORMAT_XRGB8888) {
pixel_size = 3;
png_init_io(pPngStruct, fp);
if (format == TBM_FORMAT_XRGB8888) {
pixel_size = 3;