      if (!fp)         return ERROR_INT("stream not defined", procName, 0);     if (!pixa)         return ERROR_INT("pixa not defined", procName, 0);      n = pixaGetCount(pixa);     for (i = 0; i < n; i++) {         if ((pix = pixaGetPix(pixa, i, L_CLONE)) == NULL) {             