! * \brief pixWriteDebug() * * \param[in] fname * \param[in] pix * \param[in] format defined in imageio.h * \return 0 if OK; 1 on error * * * Notes: * (1) Debug version, intended for use in the library when writing * to files in a temp directory with names that are compiled in. * This is used instead of pixWrite() for all such library calls. *
| 292 | * </pre> |
| 293 | */ |
| 294 | l_int32 |
| 295 | pixWriteDebug(const char *fname, |
| 296 | PIX *pix, |
| 297 | l_int32 format) |
| 298 | { |
| 299 | PROCNAME("pixWriteDebug"); |
| 300 | |
| 301 | if (LeptDebugOK) { |
| 302 | return pixWrite(fname, pix, format); |
| 303 | } else { |
| 304 | L_INFO("write to named temp file %s is disabled\n", procName, fname); |
| 305 | return 0; |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | |
| 310 | /*! |
no test coverage detected